Thanks Erik for the well-informed reply! On Nov 7, 2007 11:50 AM, Erik de Castro Lopo wrote: > Steven Yi wrote: > > > I just read this article on issues between VisualC compiler and gcc: > > > > http://www.ibm.com/developerworks/aix/library/au-porting2/?ca=drs-tp4507 > > The article was actually about C++ so I changed the subject line to > suit :-). > > > It brought up some interesting issues, particularly the one about > > struct membership alignment. > > Since I do most of my cross-platform coding in C rather that C++ I > find the biggest problem is that while GCC has supported large > portions of the 1999 ISO C Standard for almost a decade, microsoft's > compiler supports almost nothing of that standard even 8 years after > it was ratified. > > In particular: > > - snprintf : Microsoft does have a function _snprintf, but its > behavior does not comply with the requirements of C99. > - C99 maths functions : The new standard introduced a bunch of new > functions including the lrint/lrintf family of functions. > - A couple of new header files including . > - The inline keyword : Microsoft of course has a non standard __inline > keyword instead. > - Pre-defined macros like __func__ : Again Microsotf has a non-standard > __FUNCTION__ macro. > - Variable length arrays. > - Variadic macros. > - The long long type. > > > Erik > -- > ----------------------------------------------------------------- > Erik de Castro Lopo > ----------------------------------------------------------------- > Q. What is the difference between Jurassic Park and Microsoft? > A. One is an over-rated high tech theme park based on prehistoric > information and populated mostly by dinosaurs, the other is a > Steven Spielberg movie. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net