Google Groups Home
Help | Sign in
Introduce a C Compiler ucc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
dreamAnders  
View profile
 More options May 10, 9:13 pm
Newsgroups: comp.compilers
From: dreamAnders <dream_and...@yahoo.com.cn>
Date: Sat, 10 May 2008 18:13:59 -0700 (PDT)
Local: Sat, May 10 2008 9:13 pm
Subject: Introduce a C Compiler ucc
ucc is an ANSI C Compiler. Its code size is about 15,000 lines.
The lexer, parser and code generator are all hand-written.
The code structure is very clear and straightforward. And there is an
interesting value numbering algorithm.
It also has a document explaining the internal implementation.
If you are interested at this compiler, you can download it from
http://sourceforge.net/projects/ucc

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
karel  
View profile
 More options May 11, 2:46 am
Newsgroups: comp.compilers
From: karel <gr...@optusnet.com.au>
Date: Sat, 10 May 2008 23:46:20 -0700 (PDT)
Local: Sun, May 11 2008 2:46 am
Subject: Re: Introduce a C Compiler ucc
On May 11, 11:13 am, dreamAnders <dream_and...@yahoo.com.cn> wrote:

> ucc is an ANSI C Compiler. Its code size is about 15,000 lines.

Tryin to compile this :
#include <stdio.h>
int main()
{
        printf("hello world\n");
        return 0;
}

gives me this:
[k2@Antec ucc]$ ucc t.c
fatal error in /usr/local/lib/ucc/ucl
ucc fatal error
If I remove the include it compiles OK.
Where the ucl searches for <stdio.h> ?

Jaro Gress


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex L.K  
View profile
 More options May 11, 9:33 pm
Newsgroups: comp.compilers
From: "Alex L.K" <liangkun1...@gmail.com>
Date: Sun, 11 May 2008 18:33:38 -0700 (PDT)
Local: Sun, May 11 2008 9:33 pm
Subject: Re: Introduce a C Compiler ucc
On May 11, 9:13 am, dreamAnders <dream_and...@yahoo.com.cn> wrote:

> ucc is an ANSI C Compiler. Its code size is about 15,000 lines.
> If you are interested at this compiler, you can download it fromhttp://sourceforge.net/projects/ucc

What are the advantages of this compiler ?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
karel  
View profile
 More options May 12, 1:04 am
Newsgroups: comp.compilers
From: karel <gr...@optusnet.com.au>
Date: Sun, 11 May 2008 22:04:50 -0700 (PDT)
Local: Mon, May 12 2008 1:04 am
Subject: Re: Introduce a C Compiler ucc
On May 12, 11:33 am, "Alex L.K" <liangkun1...@gmail.com> wrote:
> On May 11, 9:13 am, dreamAnders <dream_and...@yahoo.com.cn> wrote:

> > ucc is an ANSI C Compiler. Its code size is about 15,000 lines.
> > If you are interested at this compiler, you can download it

fromhttp://sourceforge.net/projects/ucc

> What are the advantages of this compiler ?

Its code can be followed using Eclipse Debugger which makes great
reading.
There is new version that solved the fatal error message on system
that has memory file handling bad.
It is also smaller and faster then gcc.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Razvan Aciu  
View profile
 More options May 12, 4:43 am
Newsgroups: comp.compilers
From: "Razvan Aciu" <ad...@kam.ro>
Date: Mon, 12 May 2008 11:43:57 +0300
Local: Mon, May 12 2008 4:43 am
Subject: Re: Introduce a C Compiler ucc
I think this is a great job. Keep it going!

There is now a tendency to write C compilers using more liberal licences
than GPL, which is used by gcc.
Examples: http://clang.llvm.org/ and http://pcc.ludd.ltu.se/
They can be used even as libraries for different purposes like backends for
advanced code generators to C, code checkers, IDE syntax highlighting, etc.
Probably all of these compilers are much easier to integrate in other
projects than gcc.

For ucc if someone can contact the developer, I have a suggestion: please do
not target MASM for the assembly generated code, because the MASM licence
restricts MASM redistribution both for free or commercial projects so it
will render ucc useless to developers who want to distribute ucc or use ucc
as part of other packages. I don't even know if you have the right to
include ml.exe in the ucc package. It is much better to generate assembly
for NASM ( http://sourceforge.net/projects/nasm ) (it can also be used in
linux or MacOS as a gas replacement), YASM (
http://www.tortall.net/projects/yasm/ ) (also NASM compatible) or FASM (
http://flatassembler.net/ ) (this is written in assembly so it can't be
interfaced with C programs as a library).

Razvan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google