From: Sandeep D. <san...@us...> - 2000-04-02 20:11:39
|
> Michael, The .globl is NOT required because we are assembling with -losgff option the -g means all undefined symbols are assumed to be globl i.e. the linker will resolve it. I tried the two following files and it worked. /* file ext1.c */ extern int ii ; void foo() { ii++; } /* file ext.c */ int ii ; extern void foo(); main() { foo(); ] sdcc -c ext1.c sdcc ext.c ext1.rel foo & ii were resolved correctly... Sandeep Sandeep > > Hash: SHA1 > > Heres a bug I cant track. > > This code: > > extern int blah; > > void inc(void) > { > blah++; > } > > fails as 'blah' is not defined as a global - ie no .globl blah line was > inserted. > > - -- Michael > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.0 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE44l6wUejL3SuzxEgRAlxbAJ0QfMgPCJ/KtxSRd+0NuLKK+a3hKQCfTwjJ > xGVMJcHTykA38tPx1tRRHy0= > =tApF > -----END PGP SIGNATURE----- > > _______________________________________________ > sdcc-devel mailing list > sdc...@li... > http://lists.sourceforge.net/mailman/listinfo/sdcc-devel |