tkchia / gcc-ia16

Fork of Lambertsen & Jenner (& al.)'s IA-16 (Intel 16-bit x86) port of GNU compilers ― added far pointers & more • use https://github.com/tkchia/build-ia16 to build • Ubuntu binaries at https://launchpad.net/%7Etkchia/+archive/ubuntu/build-ia16/ • DJGPP/MS-DOS binaries at https://gitlab.com/tkchia/build-ia16/-/releases • mirror of https://gitlab.com/tkchia/gcc-ia16
GNU General Public License v2.0
173 stars 13 forks source link

Possibility of supporting C++ compilation? #77

Open juj opened 3 years ago

juj commented 3 years ago

Wow, finding this project brought up some hot memories from the past, and thought about trying to get some of my code running on an older DOS PC. Amazing work! :)

It is documented that gcc-ia16 does not currently support compiling C++ files. I wonder if that is something that would be feasible to add? Iiuc the gcc 6.3.0 toolchain would provide that if compiled in?

I can imagine that C++ standard libraries would be a beast - none of those are not something that are particularly interesting given their bloat. But in general C++ language constructs like classes, function overloading, default arguments, inline variable definition support and templates would be something that'd be useful. I.e. that "C with classes" style of subset.

Would that be something that's on the roadmap, or even experimented with in the past?

LowLevelMahn commented 3 years ago

i would also love to write my DOS code with templates, lambdas and all that new C++11/14/17 stuff :)

(but i've read (never tested it) that C++ support is possible with the gcc-ia16 for Linux)