Is there a "proper" way to put some functions in a file into a different
section for linking

Right now I'm doing

/* Force the rest of this code into common */

void dummy(void) __naked
{
__asm
  .area _COMMONMEM
__endasm;
}

which while bletcherous does seem to work, at least for my use case.

I've also got another ugly I'm having to use because sdcc errors

#ifdef SOMETHING
<entire code>
#endif


which produces an error that ANSI C doesn't permit an empty file. While
that is correct I see nothing in the standard that says "after
preprocessing" and would submit that is a compiler bug ?

Alan



------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to