Hi,
I have multiple L15 link warning (MULTIPLE CALL TO SEGMENT).
Referred to:
http://www.keil.com/support/docs/805.htm and fixed one. But how do i fix the rest.
When I use the OVERLAY command in a linker control file, or directly under BL51 Misc, I am not able to add more than one. I tried comma, semi-colon etc but nothing works.
How do I use the command - OVERLAY (sfname ! *), for multiple functions that I need to remove from overlay.
Thanks
Regards, R
Calling functions (marked reentrant) from both main and its children and an ISR is possible, yes ... but I guess that doing so is asking for something that will take an awful lot of thought to believe safe as well as, most likely, causing a "dumb little nagging very rarely occurring bug".
I have had experiences with the result of this (done by others) and have thus established a "personal rule": "functions may under no circumstances be called from main and ISR".
Erik
With assembler code, the coder can see all code and know what happens.
With C code and the C compiler needing helper functions and playing around with auto variables upgraded to global variables, it really isn't obvious what happens when having an 8051 function shared between ISR and main loop. So best to avoid it.
With assembler code, the coder can see all code and know what happens. actually one of the cases I mentioned above was written in asssembler.