Le 06/05/2016 à 07:24, Robert Darmochwal a écrit :
could you instruct me how to compile lcc with visual studio ?
I once succeded it emailing author. amendment to lburg was needed
but .please explaing me entire process. I need to turn it into lib.
so I can call compile().
?
I have done that, and I sell it to customers as a JIT (Just In Time
compiler)
The big problem is that the original lcc needs three passes:
1) Preprocessor. This could be eliminated if you do not generate code
that needs the preprocessor.
2) The compiler pass (c==> asm)
3) the assembler (asm mnenmonics ==> binary instructions)
Then you need to link the generated code into something that is running.
I have done all that but I can't just tell you in an email message... as
you can imagine. It is a quite complex assignment, specially writing an assembler.
Please feel free to ask further question, or more specific ones.
There is actually no problem compiling lcc with visual studio. What are
the difficulties you have found?
Another thing is that you need a debugger so that you can debug the
generated code.
jacob
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)