[tools] Add 'ecc' ELKS C86 compiler driver script #2119
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds easy-to-use
ecc
compiler driver for use with @rafael2k's 8086-toolchain which is being discussed in #2112 and requires the changes in rafael2k/8086-toolchain#5.The initial primary purpose of this script is to allow for quick test preprocessing, compilation, assembly and link of a single .c file to test the C86 toolchain without having to write a Makefile.
For instance, with a complete foo.c program in 8086-toolchain, the files foo.i, foo.asm, foo.o and foo will be created by:
The ecc script lives in ELKS $TOPDIR/elks/tools/bin/ecc. It must first be edited to contain the top directories of the ELKS and C86 installation before it will work. This is documented in the script itself.
Also, currently the script requires running in the 8086-toolchain directory. This is because it assembles the lib86.a library from source each time. This will be automated in the 8086-toolchain master make shortly.