git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: C-compiler features

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 11, 2008, 16:24 UTC
Message-ID
<alpine.LNX.1.00.0802111115360.13593@iabervon.org>
In-Reply-To
<20080211090326.2d0c64cd@pc09.procura.nl>
On Mon, 11 Feb 2008, H.Merijn Brand wrote:
Show 8 quoted lines
> Having to answer questions about my C-compiler isn't always that easy.
> Sometimes you need to find include files, for which you don't know if
> and if how they are used. Sometimes you need to compile test programs
> to see the behaviour, and then there is threads, 32/64 bitness etc.
> 
> I was recently pointed to http://www.math.utah.edu/pub/features/
> Which gives a nice summary of what your C/C++ compiler behaves like.
> Here's the output for HP C-ANSI-C on HP-UX 11.23/64 IPF and on 11.00

Hmm. I'm actually more curious about what language features a compiler supports (Is "inline" a keyword? Does it accept C99 comments? C99 struct initializers? Flex arrays?). Sometimes the errors you get when these aren't what the code expects are hard to identify, because the compiler comes up with some odd interpretation of the structure as what you meant but messed up, and you get a slew of inappropriate error messages, sometimes hiding the actual wrong thing. Missing header files/types/macros/declarations generally give a clear first error message.

	-Daniel
*This .sig left intentionally blank*
Previous: H.Merijn Brand
Message 2 of 2 in “C-compiler features”
  1. H.Merijn BrandFeb 11, 2008
  2. Daniel BarkalowFeb 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.