Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.development > #9236

Re: misc comments

From "Benjamin David Lunt" <zfysz@fysnet.net>
Newsgroups alt.os.development
Subject Re: misc comments
Date 2016-03-02 10:28 -0700
Organization Aioe.org NNTP Server
Message-ID <nb77re$14cm$1@gioia.aioe.org> (permalink)
References <nb5bmn$5aa$2@gioia.aioe.org> <66ec3ffd-520d-47e0-b565-16dc520710f2@googlegroups.com>

Show all headers | View raw


"Alexei A. Frounze" <alexfrunews@gmail.com> wrote in message 
news:66ec3ffd-520d-47e0-b565-16dc520710f2@googlegroups.com...
> On Tuesday, March 1, 2016 at 4:21:47 PM UTC-8, Benjamin David Lunt wrote:
>> I have been wanting to get back to what Alex is doing with
>> SmallerC.  You added floating point support, did you not?
>
> Yes, this work is in a separate branch:
> https://github.com/alexfru/SmallerC/tree/wip_float
>
>
> Most of the math library is in, but a few pieces are still
> to be done (e.g. pow(), cosh()/sinh()/tanh()). printf() works
> with floats, but scanf() doesn't and there isn't atof() or
> strtod() yet. Nor difftime().
>
> 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?

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.

I guess I will need to go have a look to see what you did.

It surprised me at first that you don't emit FPU instructions,
but then I remembered that most, even modern compilers call
libraries to do the math.

When I get a chance, I will have to take a look and see what
you have done.

Thanks,
Ben

Back to alt.os.development | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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