SDKZSPF LSI, SDKZSPF Datasheet - Page 323

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
relocates the code within this module up by 0x8888 words. The in-line
assembly line:
is equivalent to the C statement ‘ndx += i;’.
The sections.s file is shown below.
.section “text1”, “ax”
.global _foo
_foo:
.section “text2”, “ax”
.global
.global
.walign 2
test_label_1:
.walign 2
test_label_2:
This file declares an external function entry point ‘_foo’ within the
‘text1’ section and two other function entry points ‘test_label_1’ and
‘test_label_2’ within the ‘text2’ section. Since the function ‘int
foo(void)’ is to be called from C, its name must be prefixed with an
underscore.
The slow_pi.s file was generated by the zdcc compiler without
optimizations from a C program. It shows the kind of assembly file
produced by the compiler and gives us the opportunity for demonstrating
the kinds of optimizations zdopt will do. The build script creates the
slow_opt_pi.s file, which is the optimized version of slow_pi.s.
Example Program pie.exe
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
asm(“iadd %0, %2”: “=r” (ndx): “0” (ndx), “r” (i));
mov
nop
call
call
mov
ret
add
ret
add
ret
test_label_1
test_label_2
r13, %rpc
%rpc, r13
r4, 3
r4, -2
test_label_1
test_label_2
A-13