What do you think of LCC ?
What do you think of LCC ?
I want to develop a C compiler.
You know, GCC is very big, It is hard to read its code.
TCC is very good, but no book talks about it, it is hard to understand it.
LCC also opens source, and there is a book talk about it,(A Retargetable C Compiler: Design and Implementation) , but it needs $55.99 in amazon.com.
I can not find the book in my city, maybe i must buy it in amazon.com.
but i want to know how is LCC.
You know, GCC is very big, It is hard to read its code.
TCC is very good, but no book talks about it, it is hard to understand it.
LCC also opens source, and there is a book talk about it,(A Retargetable C Compiler: Design and Implementation) , but it needs $55.99 in amazon.com.
I can not find the book in my city, maybe i must buy it in amazon.com.
but i want to know how is LCC.
Just For Fun
Re: What do you think of LCC ?
I want to know how does a compiler work.
and improve my assemble language.
and improve my assemble language.
Just For Fun
Re: What do you think of LCC ?
Would you look at the Linux source to figure out how an OS works?david wrote:I want to know how does a compiler work.
Would that teach you how an OS could work?
Same for compilers. Don't look at the source, look at the books that those people read. Google "dragon book compiler". or click here.
Every good solution is obvious once you've found it.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: What do you think of LCC ?
Also have good look at Writh's books and articles . I learned a lot from him and also the tiger Book
Regards
Shrek
Regards
Shrek
Last edited by DeletedAccount on Tue Dec 09, 2008 7:41 am, edited 1 time in total.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: What do you think of LCC ?
gee 55$ for a book . Its too much , I guess hacking the source is the cheaper way out .
If the source code is well written and commented well , then you might be able to do way without the books . I learned about XNA programming this way , the books were way too expensive so downlded the books source code from the site and figured out the contents of the books without actually reading them .
However the authour here seems to be very smart , there are no comments in the source code .But the source is quite readable , i think its possible to understand the entire thing with some exertion from your side.
Regards
Shrek
If the source code is well written and commented well , then you might be able to do way without the books . I learned about XNA programming this way , the books were way too expensive so downlded the books source code from the site and figured out the contents of the books without actually reading them .
However the authour here seems to be very smart , there are no comments in the source code .But the source is quite readable , i think its possible to understand the entire thing with some exertion from your side.
Regards
Shrek
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: What do you think of LCC ?
Many of my college books are past the $50 (even past €50).
Good thing the book I have on compiler stuff is from my university (pdfs, be free! )
Good thing the book I have on compiler stuff is from my university (pdfs, be free! )
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: What do you think of LCC ?
Hi,
However here in India , low price Asian Editons are available , so the cost is around only 10$ or less . I also buy second hand books , which are much cheaper . My rooms is therefore flooded with books .
Regards
Shrek
However here in India , low price Asian Editons are available , so the cost is around only 10$ or less . I also buy second hand books , which are much cheaper . My rooms is therefore flooded with books .
Regards
Shrek
-
- Member
- Posts: 153
- Joined: Sun Jan 07, 2007 9:40 am
- Contact:
Re: What do you think of LCC ?
The code says exactly what its doing more accurately than a bunch of comments, i dont like a bunch of misdocumented comments cluttering up my crystal clear source code.Shrek wrote:...However the authour here seems to be very smart , there are no comments in the source code...
Re: What do you think of LCC ?
I bought the dragon book in internet yesterday.(english second edition)
Engish is a foreign language for me, mybe it is a little difficult to read it.
who developped a compiler before, Would you like to talk about it , and give me some advices.
Engish is a foreign language for me, mybe it is a little difficult to read it.
who developped a compiler before, Would you like to talk about it , and give me some advices.
Just For Fun
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: What do you think of LCC ?
That sums up the value of comments , code written by you might be crystal clear to you , but not necesserily for someone else .tantrikwizard wrote:The code says exactly what its doing more accurately than a bunch of comments, i dont like a bunch of misdocumented comments cluttering up my crystal clear source code.Shrek wrote:...However the authour here seems to be very smart , there are no comments in the source code...
Regards
Shrek
Re: What do you think of LCC ?
...and your code is only clear on the how, but not on what or why.
Every good solution is obvious once you've found it.
- Khaoticmind
- Member
- Posts: 29
- Joined: Tue Nov 18, 2008 1:06 pm
- Location: Brazil
Re: What do you think of LCC ?
thats why my bootloader looks more like a book than a piece of codeSolar wrote:...and your code is only clear on the how, but not on what or why.
If you have interest check it out here: http://code.google.com/p/the-kos/source ... t/boot.asm
Going back on-topic...
I plan on writing an compiler down the road, I've the dragon book but never got the time to fully read it
Knowing the LCC has a book and is well documented, i might be trying to look at its code when time comes
-
- Member
- Posts: 153
- Joined: Sun Jan 07, 2007 9:40 am
- Contact:
Re: What do you think of LCC ?
Ive used Gold parser (http://www.devincook.com/goldparser/) to create a C# sort of compiler and assembler before. Someone in IRC recently turned me on to ANTLR (http://www.antlr.org) I've not used it but it looks promising. Those groups would be a better place for info on compilers.david wrote:...who developed a compiler before, Would you like to talk about it , and give me some advices...
Re: What do you think of LCC ?
HI,david wrote: Engish is a foreign language for me, mybe it is a little difficult to read it.
To the best of my knowledge most chinese people speak english well,
,...,& sorry to say that,most valuable books around computer science written in english ,so you need to improve your english skills
CheerS,
a.T.d
Distance doesn't make you any smaller,
but it does make you part of a larger picture.
but it does make you part of a larger picture.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Re: What do you think of LCC ?
Hi,
I seriously urge you to take a look at your own posts . Most prominently , this one http://forum.osdev.org/viewtopic.php?f=11&t=18503 .
Regards
Shrek
I seriously urge you to take a look at your own posts . Most prominently , this one http://forum.osdev.org/viewtopic.php?f=11&t=18503 .
Regards
Shrek