Tcctok defines the following __aeabi_xxx functions: DEF(TOK_memcpy, "__aeabi_memcpy") DEF(TOK_memcpy4, "__aeabi_memcpy4") DEF(TOK_memcpy8, "__aeabi_memcpy8") DEF(TOK_memset, "__aeabi_memset") DEF(TOK___aeabi_ldivmod, "__aeabi_ldivmod") DEF(TOK___aeabi_uldivmod, "__aeabi_uldivmod") DEF(TOK___aeabi_idivmod, "__aeabi_idivmod") DEF(TOK___aeabi_uidivmod, "__aeabi_uidivmod") DEF(TOK___divsi3, "__aeabi_idiv") DEF(TOK___udivsi3, "__aeabi_uidiv") DEF(TOK___floatdisf, "__aeabi_l2f") DEF(TOK___floatdidf, "__aeabi_l2d") DEF(TOK___fixsfdi, "__aeabi_f2lz") DEF(TOK___fixdfdi, "__aeabi_d2lz") DEF(TOK___ashrdi3, "__aeabi_lasr") DEF(TOK___lshrdi3, "__aeabi_llsr") DEF(TOK___ashldi3, "__aeabi_llsl") DEF(TOK___floatundisf, "__aeabi_ul2f") DEF(TOK___floatundidf, "__aeabi_ul2d") DEF(TOK___fixunssfdi, "__aeabi_f2ulz") DEF(TOK___fixunsdfdi, "__aeabi_d2ulz")
are defined in ./libgcc/config/arm/* files from gcc source code. -----Original Message----- From: Thomas Preud'homme [mailto:robo...@celest.fr] Sent: dimanche 11 novembre 2012 20:18 To: tinycc-devel@nongnu.org Cc: Christian Jullien Subject: Re: [Tinycc-devel] __aeabi_idivmod & __aeabi_idiv are undefined Le dimanche 11 novembre 2012 19:53:27, Christian Jullien a écrit : [SNIP] > > > I get > > tcc: error: undefined symbol '__aeabi_idiv' > > tcc: error: undefined symbol '__aeabi_idivmod' > [SNIP] > > Changing int to unsigned int results in: > > tcc: error: undefined symbol '__aeabi_uidiv' > > tcc: error: undefined symbol '__aeabi_uidivmod' > > Now the question: > > Is it expected to link with libgcc.a ? What other __aeabi_xxx > functions are missing? I don't know but I could look at the source to make a list. I don't have much time now though. > > Could we add them in libtcc.a ? I guess I could write easily suboptimal functions for integer manipulation. If some functions are needed for float manipulation it might require me more time though. > > > > If tcc is expected to replace gcc, imho it should not use any gcc > specific lib. yes indeed. It should support both modes. > > I've also checked that no .a exist in /usr/lib having those missing > functions. > > > > Christian Thomas _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel