What do you think of LCC ?

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
david
Member
Member
Posts: 93
Joined: Tue Aug 21, 2007 4:22 am
Location: Beijing.China
Contact:

What do you think of LCC ?

Post by david »

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.
Just For Fun
User avatar
david
Member
Member
Posts: 93
Joined: Tue Aug 21, 2007 4:22 am
Location: Beijing.China
Contact:

Re: What do you think of LCC ?

Post by david »

I want to know how does a compiler work.
and improve my assemble language.
Just For Fun
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: What do you think of LCC ?

Post by Solar »

david wrote:I want to know how does a compiler work.
Would you look at the Linux source to figure out how an OS works?

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.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do you think of LCC ?

Post by DeletedAccount »

Also have good look at Writh's books and articles . I learned a lot from him and also the tiger Book

Regards
Shrek
Last edited by DeletedAccount on Tue Dec 09, 2008 7:41 am, edited 1 time in total.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do you think of LCC ?

Post by DeletedAccount »

gee 55$ for a book :oops: . Its too much , I guess hacking the source is the cheaper way out :mrgreen: .

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 :mrgreen: .

However the authour here seems to be very smart , there are no comments in the source code :shock: .But the source is quite readable , i think its possible to understand the entire thing with some exertion from your side.


Regards
Shrek
User avatar
Combuster
Member
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 ?

Post by Combuster »

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! :D)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do you think of LCC ?

Post by DeletedAccount »

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 :D . My rooms is therefore flooded with books .

Regards
Shrek
tantrikwizard
Member
Member
Posts: 153
Joined: Sun Jan 07, 2007 9:40 am
Contact:

Re: What do you think of LCC ?

Post by tantrikwizard »

Shrek wrote:...However the authour here seems to be very smart , there are no comments in the source code...
:idea: 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. :D
User avatar
david
Member
Member
Posts: 93
Joined: Tue Aug 21, 2007 4:22 am
Location: Beijing.China
Contact:

Re: What do you think of LCC ?

Post by david »

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. =D>
Just For Fun
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do you think of LCC ?

Post by DeletedAccount »

tantrikwizard wrote:
Shrek wrote:...However the authour here seems to be very smart , there are no comments in the source code...
:idea: 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. :D
That sums up the value of comments , code written by you might be crystal clear to you , but not necesserily for someone else .


Regards
Shrek
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: What do you think of LCC ?

Post by Solar »

...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.
User avatar
Khaoticmind
Member
Member
Posts: 29
Joined: Tue Nov 18, 2008 1:06 pm
Location: Brazil

Re: What do you think of LCC ?

Post by Khaoticmind »

Solar wrote:...and your code is only clear on the how, but not on what or why.
thats why my bootloader looks more like a book than a piece of code :)
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
tantrikwizard
Member
Member
Posts: 153
Joined: Sun Jan 07, 2007 9:40 am
Contact:

Re: What do you think of LCC ?

Post by tantrikwizard »

david wrote:...who developed a compiler before, Would you like to talk about it , and give me some advices...
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.
User avatar
i586coder
Member
Member
Posts: 143
Joined: Sat Sep 20, 2008 6:43 am

Re: What do you think of LCC ?

Post by i586coder »

david wrote: Engish is a foreign language for me, mybe it is a little difficult to read it.
HI,

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.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: What do you think of LCC ?

Post by DeletedAccount »

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
Post Reply