Skip to contentSkip to conversation

Assembly Procedure calls

DISCUSSION J.S.Souza 2 participants 2 messages May 16, 2002 – Jun 10, 2002

lore
Share & tools
lore

J.S.Souza

author
#0 lore raw

What is required for calling procedures using GAS? Do I have to pay attention to far / near calls? Also, do I need to pay attention to realigning the stack or anything else? I noticed in other peoples programs that have procedures in the main file that they push the %edi register -
what's this for? Also, what is needed if I put the procedures in another
file - do I need to declare things as EXTERN and so forth? How about assembling the file - are there options I need to pass to 'as' and 'ld'?

Regards,
Jeff Souza
[email protected]

#1 lore raw

Linear memory

hi all,

I'd like to access to a memory area on a mtd device, without having compiling the mtd support in the kernel. (read a firmware info, on a embeded environment => kernel as small as possible)
Is there any isue?

I mean:
is the device mapped anywhere, or is it really invisible, if i don't compile the mtd support?
If it is visible (how can i check that point?) do you know if there is any way to access it (like in flat mode, by a largest descriptor or something...)?

thanks for answers!

Fred