09-07-2012, 09:32 PM
hi,
I've done some experiments with llvm but I had problems to understand how to handle some outputs of the symbolic language.
I did an other investigation with lcc (https://sites.google.com/site/lccretargetablecompiler/) to generate tlcs900h asm that can be compiled by "as".
For the moment, I copied the x86 config files and most of the generated code look like x86 asm but I think it could be a good way.
The current version of my lcc modified code : https://dl.dropbox.com/u/5579480/lcc42.zip
Compile it with gcc (make all) using my modified "makefle" file.
Compile ngpc .c file using this command line:
lcc -S -target=tlcs900h -I. -c main.c
lcc has a symbolic output if you want to do your own symbolic->tlcs900h translator.
I've done some experiments with llvm but I had problems to understand how to handle some outputs of the symbolic language.
I did an other investigation with lcc (https://sites.google.com/site/lccretargetablecompiler/) to generate tlcs900h asm that can be compiled by "as".
For the moment, I copied the x86 config files and most of the generated code look like x86 asm but I think it could be a good way.
The current version of my lcc modified code : https://dl.dropbox.com/u/5579480/lcc42.zip
Compile it with gcc (make all) using my modified "makefle" file.
Compile ngpc .c file using this command line:
lcc -S -target=tlcs900h -I. -c main.c
lcc has a symbolic output if you want to do your own symbolic->tlcs900h translator.