Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Non-sucking Win32 C compiler

Name: Anonymous 2009-08-12 14:37

I need a small (not bloated to hell, clean, not system ruining / service installing) compiler for tiny C programs with POSIX-like semantics (i.e. C library that doesn't suck and stuff like read() instead of ReadFileWEX(WHANDLE, WSHARINGMODE, WSECURITYCONTEXT, NULL, NULL, NULL, NULL) - true POSIX stuff like fork() et al is not needed).

Visual Studio or cygwin are out of the question. Some GCC distro like mingw might be OK depending on how much the installation sucks (ideally there wouldn't be any installation at all).

Any ideas or do I give up to ENTERPRISE-quality software?

Name: Anonymous 2009-08-15 22:07

>>63
It can know that strlen is pure and use that for some optimisations, but it won't step through your code to the extent required to turn the code in >>60 into non-sucking code. Rather than being ``trivial'', the sort of optimisations you have in mind are equivalent to solving the halting problem.

If it did do something like that for you, chances are you were in one of the rare situations were a C string was actually immutable (and I don't mean const char*). That's not the case in >>60.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List