3

Are there any c compilers for ms-dos that support some C99 features? I have trouble searching for recent compilers that I can run on my system. Actually, I need this to have a compiler on my Playbook via Dos Box, while I am away from home and wihout internet access.

Dvole
  • 5,725
  • 10
  • 54
  • 87
  • Do you have to _run_ the compiler in DOS? Or is it enough to make a cross-compiler that runs in another environment but generates DOS executables? – Some programmer dude Nov 29 '12 at 09:04
  • @JoachimPileborg I need the one that runs on DOS and produces executables to run in DOS. – Dvole Nov 29 '12 at 09:06
  • 1
    I think compilers stopped supporting DOS somewhere during the mid 90s, so it seems unlikely that you would find one, especially since C99 was regarded with a lot of scepticism upon release and it took many years before it became accepted and implemented on the PC compilers. – Lundin Nov 29 '12 at 09:10
  • @lundin, Do you have any references for why C99 was regarded with a lot of skepticism? I am interested in reading more about it. – Shahbaz Nov 29 '12 at 09:13
  • 1
    @Shahbaz It was mainly because they decided to leave some compatibility with C90 and C++ behind, but also because the new standard introduced a lot of poorly-defined behavior. And many questioned the use of some new features like the complex number library. Many in the standard committee itself were not happy with the outcome. [Microsoft has decided to not implement C99](http://www.infoq.com/news/2012/05/vs_c99_support/) in the Visual Studio compiler, as one example. [Here](http://stackoverflow.com/questions/4241080/what-is-the-point-of-the-c99-standard) is another link on the subject. – Lundin Nov 29 '12 at 13:47

2 Answers2

4

This compiler should work on MSDOS (gcc adapation)

http://personal.ee.surrey.ac.uk/Personal/R.Bowden/C/dos-gcc/index.htm

DeadCalimero
  • 260
  • 1
  • 9
0

CC386 supports C99. But it requires a 386.

Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196