Low-Level Library Interface (Clibinit); C++ Startup (Cplusplus) - Fujitsu FR Series Application Note

32-bit microcontroller
Hide thumbs Also See for FR Series:
Table of Contents

Advertisement

#pragma
segment CODE = IRAM
Available settings for I_RAM:
- ON
- OFF
Example:
The code in the segment IRAM should be copied to the instruction RAM during startup.
#set
I_RAM
;

2.5 Low-Level Library Interface (CLIBINIT)

The setting CLIBINI specifies whether the startup code has to call the stream initialization
function of the C-library.
The stream initialization is necessary only, if streamed IO-functions are used. These
functions (e.g. printf()) also require the definition of application specific low-level functions.
For more information refer to the compiler help.
Available settings for CLIBINIT:
- ON
- OFF
Example:
The stream initialization should not be done.
#set
CLIBINIT

2.6 C++ startup (CPLUSPLUS)

In the C++ specifications, when external or static objects are used, a constructor must be
called followed by the main function. Because four-byte pointers to the main function are
stored in the EXT_CTOR_DTOR section, call a constructor sequentially from the lower
address of the four addresses in that section. If using C++ sources, activate this function to
create the section EXT_CTOR_DTOR.
Available settings for CPLUSPLUS:
- ON
- OFF
Example:
C++ is not used.
#set
CPLUSPLUS
© Fujitsu Microelectronics Europe GmbH
Start91460.asm
Chapter 2 Settings of the Start91460.asm
ON
; <<< select
should be copied
OFF
; <<< select ext. libray usage
OFF
; <<< activate if c++ files are used
- 9 -
if
code
in
section IRAM
MCU-AN-300021-E-V10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460 seriesStart91460.asm

Table of Contents