Home » Community » Coffee corner » "(national) C compiler"
Re: "(national) C compiler" [message #20706 is a reply to message #20703] |
Wed, 01 April 2009 11:20 |
kbyte
Messages: 87 Registered: July 2008
|
Member |
|
|
Ok, three ideas:
1- "Actually, C is pretty simple. I believe I could do basic C compiler in a week (badly optimizing, compiling to e.g. x86 assembly)."
This is the most interesting but even not wanting an optimized compiler I think it requires a great knowledge on assembly, which is not my case.
2-"Well, I wouldn't invest effort into this except with macros. You could parse the compiler errors and with basic regex get it to talk about your keywords."
It seems very interesting for me . Just define the macros and parse existing compiler output...
3- But if you want a "true" solution, I still suggest taking a C compiler and just changing what the keywords are. If you're lucky, you wont have to edit some lexer tool generated tables. LCC and clang are good candidates. If you're feeling brave, you could try to tackle GCC. GCC may be complex and not very coder friendly (it's sources), but changing the lexer should be accessible."
Seems interesting too for me.
I will try third option first and if too complex or takes too long i will try the second option.
Thanks once again
Kim
(Our team: Kim, Alex and Jose)
|
|
|
|
|
"(national) C compiler"
By: kbyte on Tue, 31 March 2009 18:10
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 20:26
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 21:18
|
|
|
Re: "(national) C compiler"
By: mirek on Wed, 01 April 2009 05:33
|
|
|
Re: "(national) C compiler"
By: mr_ped on Tue, 31 March 2009 22:21
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 23:03
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 11:20
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 11:58
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 12:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 15:03
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 15:56
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 16:07
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 23:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: wilf123 on Thu, 28 May 2009 19:19
|
Goto Forum:
Current Time: Wed Jun 05 05:54:57 CEST 2024
Total time taken to generate the page: 0.01830 seconds
|