Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.development > #9243
| From | "Benjamin David Lunt" <zfysz@fysnet.net> |
|---|---|
| Newsgroups | alt.os.development |
| Subject | Re: misc comments |
| Date | 2016-03-03 12:04 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nba24u$1rap$1@gioia.aioe.org> (permalink) |
| References | <nb5bmn$5aa$2@gioia.aioe.org> <66ec3ffd-520d-47e0-b565-16dc520710f2@googlegroups.com> <nb77re$14cm$1@gioia.aioe.org> <20160302185839.2dea803a@_> |
"Rod Pemberton" <NoHaveNotOne@bcczxcfre.cmm> wrote in message news:20160302185839.2dea803a@_... > On Wed, 2 Mar 2016 10:28:06 -0700 > "Benjamin David Lunt" <zfysz@fysnet.net> wrote: > >> > The compiler proper does not emit FPU instructions or >> > floating-point constants. It emits calls to support routines... >> >> If this is the case, and being that SmallerC is self compilable, >> did you compile/assemble the math library with something else? > > Why would he need floating point to compile the compiler? ... The compiler itself? Maybe not, but the included libraries, maybe so. As Alex commented in his reply, the simple addition/subtraction of float's could possibly be in the compiler part itself. Anyway, somewhere, the/a compiler must aventually generate FPU instructions. In the case of SmallerC, the math library. I was just commenting that if Alex wanted all of, and the math library would be part of that, all of SmallerC to be self compilable, SmallerC would have to generate FPU instructions (putting inline code aside). >> In the end, the math library must have FPU instructions in >> it, therefore, you have to either compile it with another >> compiler that does emit these instructions, or you hand >> assembled a library. > > The compiler just needs to emit the correct instructions > as assembly, which the compiler can do with printf(), or > as binary, which a compiler could do with byte sequences, > i.e., emits unsigned char's to a binary stream. I see where you are coming from. SmallerC only generates asm text for another assembler to assemble. This is what I meant, I just didn't express it very well. Ben
Back to alt.os.development | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
misc comments "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-01 17:21 -0700
Re: misc comments "Alexei A. Frounze" <alexfrunews@gmail.com> - 2016-03-01 21:52 -0800
Re: misc comments "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-02 10:28 -0700
Re: misc comments Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-03-02 18:58 -0500
Re: misc comments "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-03 12:04 -0700
Re: misc comments "Alexei A. Frounze" <alexfrunews@gmail.com> - 2016-03-02 23:41 -0800
Re: misc comments Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-03-02 18:58 -0500
Re: misc comments "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-03 12:08 -0700
csiph-web