[fpc-devel] internal assembler, .text,.data,.bss

Armin Diehl ad at ardiehl.de
Sun Feb 13 16:28:50 CET 2011


short question regarding the internal assembler:

with as i can access .text, .data and .bss like:

movl    $.data,%eax
movl    $.text,%eax
movl    $.bss,%eax

this does not seem to work with the internal assembler like:
function __getBssStart : longint; assembler; export; [alias:'__getBssStart'];
asm
     movl    $.bss,%eax
     ret
end;

any hint on how to do this with the internal asm ?

Thx

-- 

----------------
GrĂ¼sse
Armin Diehl
ad at ardiehl.de




More information about the fpc-devel mailing list