Re: where to get the iso c90 compiler?
On 2006-12-28 20:35, [EMAIL PROTECTED] wrote: >Giorgos Keramidas wrote: >> Does the lang/gcc41 port work for you? > > I don't know I don't care. Ok, then. > I want to learn more about compilation processes, get to know > UNIX-like systems more, and whatever. That's ok too. You are bound for a very fun ride, even if it takes years to realize that it never ends, though :) > So I've downloaded the source for gcc, and the README says that I need > the ISO C90 compiler. There is no "ISO C90 compiler". There is an ANSI/ISO standard for the "C Programming Language", which is _implemented_ by some compilers. You already have an installation of the GNU C compiler (GCC), installed as the system compiler of your FreeBSD system. This installation of GCC includes support for some of the standards related to the C Programming Language. You can find out more about the standards supported by your installation of GCC, by running: % info gcc In the "info browser" that pops up, follow the "Standards:" link and you can read a lot of details about the various language standards supported by your GCC installation. > Where do I get that? You have it already. See the "info" documentation of GCC. In short, you can get GCC to run in a special mode, which is almost conforming to the ISO9899:1990 standard for the C language. This mode is enabled by the options: % gcc -ansi -pedantic ... or by the equivalent set of options: % gcc -std=c89 -pedantic ... In this mode, GCC will produce diagnostic messages for all non-ISO programs, with only one notable exception, documented in its manual (see the section `Options Controlling C Dialect'): The alternate keywords `__asm__', `__extension__', `__inline__' and `__typeof__' continue to work despite `-ansi'. You would not want to use them in an ISO C program, of course, but it is useful to put them in header files that might be included in compilations done with `-ansi'. Alternate predefined macros such as `__unix__' and `__vax__' are also available, with or without `-ansi'. This minor exception means that GCC, even with the options mentioned above is *NOT* 100%-conforming to the C90 standard, but it is so close to a fully-conforming implementation of a C90 compiler, that you will hardly ever notice, unless you use one of the extensions listed above. > OK it looks like I can compile gcc 4.1 with an older gcc, but that's > not my choice. I don't know why you feel that this is not a good choice, but if you go through the info documentation of GCC and *still* feel this way, then I'd be interested to know why :) > [ But if that's the case, how was the first gcc compiled? xD ] > [ How was the first ever compiler compiled? xD ] This process is called "compiler bootstrapping". Google for it, and you will be amazed at how it works :-) Regards, Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
Gabor Kovesdan wrote: [EMAIL PROTECTED] schrieb: [Fistly, people wrote code in pure binary language. Then assembly were invented and later they wrote higher level languages in assembly.] > With whatever C compiler the gcc developer had at that time. > It probably wasn't. The first ever compiler was most likely written > in assembler. Later on the first compiler for a new language has > usually been written in some other language. Yeah I knew that. Anyone know a good book on assembly language? The evolution of programming. Can someone give me a link? Well, I don't know assembly, but I found this and it looks very good: http://www.int80h.org/bsdasm/ And it is exclusively for FreeBSD! ;) That's the tutorial set I stepped through to learn the basics. Good basic stuff. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[EMAIL PROTECTED] schrieb: [Fistly, people wrote code in pure binary language. Then assembly were invented and later they wrote higher level languages in assembly.] > With whatever C compiler the gcc developer had at that time. > It probably wasn't. The first ever compiler was most likely written > in assembler. Later on the first compiler for a new language has > usually been written in some other language. Yeah I knew that. Anyone know a good book on assembly language? The evolution of programming. Can someone give me a link? Well, I don't know assembly, but I found this and it looks very good: http://www.int80h.org/bsdasm/ And it is exclusively for FreeBSD! ;) Gabor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[EMAIL PROTECTED] wrote: >> [Fistly, people wrote code in pure binary language. Then assembly were >> invented and later they wrote higher level languages in assembly.] > > > With whatever C compiler the gcc developer had at that time. > > > It probably wasn't. The first ever compiler was most likely written > > in assembler. Later on the first compiler for a new language has > > usually been written in some other language. > > Yeah I knew that. Anyone know a good book on assembly language? http://asm.sourceforge.net/ is a good site. I've used it a great deal in the past. It has references to various Linux's and FreeBSD. > The evolution of programming. Can someone give me a link? I may be one of the missing links I remember writing programs during the late 50's in binary on a form with four columns. Column 1 was to describe the purpose of the step. Column 2 contained the binary code for the step. Column 3 used my own shorthand to illustrate the meaning of the binary code in human language and column 4 described what happened to the contents of the registers. ___ In the early sixties I wrote a small program that translated data rather like the contents of column 3 into contents equivalent to column 2. meant I did not have to remember the binary numbers but only use a consistent set of abreviations. Saved me a hell of a lot of time I can tell you!!! I still had to write the descriptions.. and get the whole lot punched into 80 column cards begore it was of any practical use. David_ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[EMAIL PROTECTED] wrote: [Fistly, people wrote code in pure binary language. Then assembly were invented and later they wrote higher level languages in assembly.] > With whatever C compiler the gcc developer had at that time. > It probably wasn't. The first ever compiler was most likely written > in assembler. Later on the first compiler for a new language has > usually been written in some other language. Yeah I knew that. Anyone know a good book on assembly language? http://asm.sourceforge.net/ is a good site. I've used it a great deal in the past. It has references to various Linux's and FreeBSD. The evolution of programming. Can someone give me a link? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
Gabor Kovesdan wrote: C90 is not a specific compiler, it's a standard, see: http://en.wikipedia.org/wiki/C90 AH OK THX. Back to a pre-compiled gcc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[Fistly, people wrote code in pure binary language. Then assembly were invented and later they wrote higher level languages in assembly.] > With whatever C compiler the gcc developer had at that time. > It probably wasn't. The first ever compiler was most likely written > in assembler. Later on the first compiler for a new language has > usually been written in some other language. Yeah I knew that. Anyone know a good book on assembly language? The evolution of programming. Can someone give me a link? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
On Thu, Dec 28, 2006 at 08:35:05PM +0100, [EMAIL PROTECTED] wrote: > Giorgos Keramidas wrote: > >Does the lang/gcc41 port work for you? > > I don't know I don't care. I want to learn more about compilation > processes, get to know UNIX-like systems more, and whatever. So I've > downloaded the source for gcc, and the README says that I need the ISO > C90 compiler. Where do I get that? OK it looks like I can compile gcc > 4.1 with an older gcc, but that's not my choice. There is no such thing as *the* ISO C90 compiler, but, the gcc README almost certainly says that you need *a* ISO C90 compiler, i.e. a compiler that can compile programs written in the C language as defined by the 1990 ISO standard. Gcc is one such compiler. > [ But if that's the case, how was the first gcc compiled? xD ] With whatever C compiler the gcc developer had at that time. > [ How was the first ever compiler compiled? xD ] It probably wasn't. The first ever compiler was most likely written in assembler. Later on the first compiler for a new language has usually been written in some other language. -- Erik Trulsson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[EMAIL PROTECTED] schrieb: Giorgos Keramidas wrote: Does the lang/gcc41 port work for you? I don't know I don't care. I want to learn more about compilation processes, get to know UNIX-like systems more, and whatever. So I've downloaded the source for gcc, and the README says that I need the ISO C90 compiler. Where do I get that? OK it looks like I can compile gcc 4.1 with an older gcc, but that's not my choice. [ But if that's the case, how was the first gcc compiled? xD ] [ How was the first ever compiler compiled? xD ] C90 is not a specific compiler, it's a standard, see: http://en.wikipedia.org/wiki/C90 [Fistly, people wrote code in pure binary language. Then assembly were invented and later they wrote higher level languages in assembly.] Gabor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
Giorgos Keramidas wrote: Does the lang/gcc41 port work for you? I don't know I don't care. I want to learn more about compilation processes, get to know UNIX-like systems more, and whatever. So I've downloaded the source for gcc, and the README says that I need the ISO C90 compiler. Where do I get that? OK it looks like I can compile gcc 4.1 with an older gcc, but that's not my choice. [ But if that's the case, how was the first gcc compiled? xD ] [ How was the first ever compiler compiled? xD ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
On 2006-12-27 23:20, [EMAIL PROTECTED] wrote: > I want to compile the GCC 4.1.1 compiler. Does the lang/gcc41 port work for you? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
[EMAIL PROTECTED] schrieb: so, where? (also for linux?) The -std option of gcc is for setting the dialect, see this page: http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/C-Dialect-Options.html#C-Dialect-Options Cheers, Gabor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
Gabor Kovesdan wrote: [EMAIL PROTECTED] schrieb: so, where? (also for linux?) The -std option of gcc is for setting the dialect, see this page: http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/C-Dialect-Options.html#C-Dialect-Options Cheers, Gabor I want to compile the GCC 4.1.1 compiler. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: where to get the iso c90 compiler?
On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: so, where? (also for linux?) Can you not use gcc in pedantic mode? Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"