DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
Old 10th November 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Another interesting project:
The Amsterdam Compiler Kit

Quote:
The Amsterdam Compiler Kit is a venerable piece of software that dates back to the early 1980s. It was originally written by Andrew Tanenbaum and Ceriel Jacobs as a commercial product; for many years it was also used as Minix' native toolchain. After eventually failing as a commercial project, it was made open source under a BSD license in 2003 when it looked like it was going to be abandoned and the code lost.

The ACK contains compilers for ANSI C, K&R C, Pascal, Modula-2, Occam 1, and a primitive Basic. It contains code generators for a large number of architectures, mostly 8 and 16 bit machines; there are also a set of generic optimisation, linker and librarian tools. Each language comes with its own runtime, so if you're a C programmer you also get a libc. Compared to gcc, it is far smaller, faster and easier to port.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 10th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by Carpetsmoker View Post
Another interesting project:
The Amsterdam Compiler Kit
There was a discussion on the PCC mailing list about that specific project, something design flaw was noted by both the current maintainer of it, and PCC.

http://marc.info/?t=119393748800005&r=1&w=2

That doesn't mean it can't be used in some way, it used to be the Minix compiler.

The following is also neat:
http://wiki.freebsd.org/ElfToolChain
http://code.google.com/p/aski-m/wiki/ElfUtils
http://nwbintools.sourceforge.net/
http://nwcc.sourceforge.net/
Reply With Quote
Old 13th November 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

I was testing out pcc and trying to use it to compile my final project - and I ran into an issue with it. It isn't my project, pcc won't even compile a "hello, world" program. It gives the error:

/usr/include//sys/cdefs.h:254: error: "No function renaming possible"
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 13th November 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by JMJ_coder View Post
I was testing out pcc and trying to use it to compile my final project - and I ran into an issue with it. It isn't my project, pcc won't even compile a "hello, world" program. It gives the error:

/usr/include//sys/cdefs.h:254: error: "No function renaming possible"
You have to provide us information about your system and setup if you want help.



My fist hunch without any information about your system is that pcc compiler can not find even C libraries as your system is probably set up to use gcc. Do not worry PCC does compile. Without it we would not have BSD.

Last edited by Oko; 13th November 2008 at 04:24 AM.
Reply With Quote
Old 13th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Are you using the version of PCC in the tree? or from their official website?
Reply With Quote
Old 18th November 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

Quote:
Originally Posted by Oko View Post
You have to provide us information about your system and setup if you want help.



My fist hunch without any information about your system is that pcc compiler can not find even C libraries as your system is probably set up to use gcc. Do not worry PCC does compile. Without it we would not have BSD.
I wasn't so much asking for help as pointing to a - huh, look at that. But, I'm running NetBSD 4.0.1 with kernel 5.99.01 and pcc-current (whatever that is in pkgsrc-2008Q3 - I can get exact version if you want). I went with current because apparently the makefile in the pcc source is still off (it won't properly compile - there's a PR already for that).

version: pcc 0.9.9 for i386--netbsdelf


I'm not going to worry too much about this now - my C/C++ programs this semester have to be compiled with gcc, so I was just taking pcc out for a little test drive. I'll be looking to get everything (that is everything, not just pcc) on my laptop working over Christmas break (about 80-90% there now).
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)

Last edited by JMJ_coder; 18th November 2008 at 12:47 AM.
Reply With Quote
Old 18th November 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

Quote:
Originally Posted by BSDfan666 View Post
Are you using the version of PCC in the tree? or from their official website?
I compiled and installed pcc-current from NetBSD's pkgsrc-2008Q3.

version: pcc 0.9.9 for i386--netbsdelf
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)

Last edited by JMJ_coder; 18th November 2008 at 12:46 AM.
Reply With Quote
Old 18th November 2008
Gabe_G23 Gabe_G23 is offline
New User
 
Join Date: Oct 2008
Posts: 5
Default

Mmmh, PCC seems to be under heavy development. Great to hear!

For now, sticking with LLVM as the alternative to GCC is best for me.

Thanks BSDFan666, keep us updated!
Reply With Quote
Old 18th November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by Gabe_G23 View Post
Thanks BSDFan666, keep us updated!
The details are rather lacking, but the following comment has me hoping..

http://undeadly.org/cgi?action=artic...8135831&pid=47

At this time, the $3,940 has been donated.. out of the desired $12,000.. only thing I've go to say is spread the word, keep people donating.
Reply With Quote
Old 12th January 2009
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Default

It's stories like the one about GCC that give truth to this mocking statement: "The GNU guys only give new meaning to the word proprietary."
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
Old 22nd January 2009
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

I know that this is still probably just an idea on a napkin, but if this came to fruition, it would make a nice companion to pcc (and eject another GNU tool):

A BSD licensed debugger
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 23rd January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Thats a commendable project JMJ; is that project maintained by FreeBSD developers? I remember they were working on a ELF manipulation tools. (bintools replacements..)

OpenBSD has a debugger called pmdb(8), which.. hadn't really been maintained.. but it's still in the tree.
Reply With Quote
Old 23rd January 2009
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

Quote:
Originally Posted by BSDfan666 View Post
Thats a commendable project JMJ; is that project maintained by FreeBSD developers? I remember they were working on a ELF manipulation tools. (bintools replacements..)

OpenBSD has a debugger called pmdb(8), which.. hadn't really been maintained.. but it's still in the tree.
As far as I know, its only 2-3 guys right now. It might get backing from the development teams once it actually becomes more a reality. I'm just excited at the time that it's being talked about.

I didn't know that OpenBSD had a debugger -- that might be an excellent place to begin (or should I say improving and extending).
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Old 23rd January 2009
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by JMJ_coder View Post
I know that this is still probably just an idea on a napkin, but if this came to fruition, it would make a nice companion to pcc (and eject another GNU tool):

A BSD licensed debugger
J_C, did you try it out? Is it working on fbsd?
Reply With Quote
Old 24th January 2009
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

Quote:
Originally Posted by ephemera View Post
J_C, did you try it out? Is it working on fbsd?
As far as I know, it is just an idea right now. SourceForge lists its development level as 1-Planning.
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need suggestions on what to name this project TerryP Off-Topic 10 6th November 2010 03:13 PM
C project to study maxrussell Programming 10 23rd January 2009 08:47 AM
Project layout, any comments? PatrickBaer FreeBSD General 1 12th October 2008 05:13 PM
Suggestions for my honours degree project... scotsman FreeBSD General 7 20th September 2008 01:38 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick