Do you known that you can test C/C++ code using different gcc/clang version on http://gcc.godbolt.org/
As you type your code on left window it displays assembler code on the right. You can of course play with different options to see how it modifies generated code. You can even make a link to share your experience with others. A must have when you try to optimize some code. Last but not least, it support ARM 32/64. If you suspect something wrong with tcc please add a test there and show us wrong behavior compared to gcc. Enjoy! C. -----Original Message----- From: Tinycc-devel [mailto:[email protected]] On Behalf Of Sergey Korshunoff Sent: dimanche 24 avril 2016 17:21 To: [email protected] Subject: Re: [Tinycc-devel] gcc/tcc nested macros difference > Look at the __ie16_to_cpu presence in the tcc output: nested macro was not expanded But if we define le16_to_cpu with arg, i.e -#define le16_to_cpu __le16_to_cpu +#define le16_to_cpu(x) __le16_to_cpu(x) then tcc output is OK. I used gcc 3.4.6 and 4.1.2 to test. May be new versions of the gcc behave like tcc. _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
