-
-
Notifications
You must be signed in to change notification settings - Fork 0
Experimental hack to hopefully allow WonderSwan toolchain to co-exist with MS-DOS cross toolchain etc. #4
Comments
Hey, I'm happy you've added this. It will make the Makefiles cleaner (moving a lot of the hardcoded, platform-specific CFLAGS magic to a spec file) and the overall architecture easier to understand (in my opinion). However:
As such, I hope it is understandable that this issue may have a lower priority than other parts of the project (packaging binaries, further work on the standard libraries, etc). I also don't think it will change much in terms of co-existing - if I'm using custom gcc-ia16 patches, my build still differs from upstream; conversely, if I'm not, you can still use gcc-ia16 binaries from build-ia16, as all of the magic currently happened in the CFLAGS/LDFLAGS area. Thank you! |
Hello @asiekierka,
Well, if and when you decide it is useful, just use it. Or not. 🙂
Actually, there are a few spec string variables — such as Thank you! |
As the Wonderful toolchain currently somewhat neatly installs itself in |
Hello @asiekierka,
Currently, as you know, (my fork of)
gcc-ia16
directly supports building programs for the MS-DOS and ELKS target platforms.I have now implemented a (still experimental)
-mr=
runtime option ingcc-ia16
(tkchia/gcc-ia16@7b96289), which will hopefully allow it to support other target runtime environments — such as your WonderSwan target — in a more pluggable fashion.Basically, if you say
-mr=
foo, theia16-elf-gcc
driver program will now try to look for a spec file namedrt-specs/r-
foo.spec
under an install-prefix/ia16-elf/lib/
subdirectory. The spec file can then control howia16-elf-gcc
invokes the actual compiler passes, looks for include files and libraries, etc.This is all still very preliminary and amenable to change (though I hope not too much needs changing). 🙂
(Incidentally, it seems that the "standard" GNU way of porting the GNU toolchain to a new target runtime, is to
This would effectively mean having whole different sets of programs for
ia16-pc-msdos-gcc
,ia16-pc-elks-gcc
,ia16-bandai-wswan-gcc
, etc.)Thank you!
The text was updated successfully, but these errors were encountered: