MSC100ABIRM Motorola / Freescale Semiconductor, MSC100ABIRM Datasheet - Page 31

no-image

MSC100ABIRM

Manufacturer Part Number
MSC100ABIRM
Description
SC100 Application Binary Interface Reference Manual
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
3.5.3 Integer Routines
The integer routines listed in Table 3-4 should comply with the ABI calling conventions. The routines have
no side effects.
3.6 Function Argument and Return Type Checking
in C
Level 1 conforming implementations support the following mechanism for checking that arguments and
return types of function calls match the called functions’ signatures.
3.6.1 Signature Symbols
For every direct call to a non-static function in a source file (i.e., a call using the function name as opposed
to a call through a function pointer), the compiler system produces in the ELF object file a symbol of the
following convention:
For every non-static function definition, the compiler system produces a symbol of the following
convention:
Table 3-5 explains the construction of the italized fields in the symbol names:
SC100 Application Binary Interface
int __div16(short a, short b);
int __udiv16(unsigned short a, unsigned short b);
int __div32(long a, long b);
int __udiv32(unsigned long a, unsigned long b);
int __rem16(short a, short b);
int __urem16(unsigned short a, unsigned short b);
int __rem32(long a, long b);
int __urem32(unsigned long a, unsigned b);
name
return_type
parameter_types
Field
__caller.name.return_type.parameter_types
__callee.name.return_type.parameter_types
Function Prototype
Table 3-5. Italized Fields in the Symbol Names
ASCII string
basetype
basetype[basetype[...]]
Table 3-4. Integer Routines
Preliminary (April 2000)
Value
Function Argument and Return Type Checking in C
Returns the value of a/b (unsigned).
Returns the value of a/b.
Returns the value of a/b (unsigned).
Returns the value of a/b.
Returns the value of a mod b.
Returns the value of a mod b.
Returns the value of a mod b.
Returns the value of a mod b (unsigned).
The name of the called function
Description
Description
3-5

Related parts for MSC100ABIRM