Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #14769
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Presence of standard words (was: CfV: S>F and F>S) |
| Date | 2012-08-06 11:22 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2012Aug6.132231@mips.complang.tuwien.ac.at> (permalink) |
| References | (1 earlier) <19171400958435@frunobulax.edu> <2012Aug4.115041@mips.complang.tuwien.ac.at> <1411609.yqygU4hVn1@sunwukong.fritz.box> <2012Aug5.130723@mips.complang.tuwien.ac.at> <501e5859.307899578@192.168.0.50> |
stephenXXX@mpeforth.com (Stephen Pelc) writes:
>On Sun, 05 Aug 2012 11:07:23 GMT, anton@mips.complang.tuwien.ac.at
>(Anton Ertl) wrote:
>
>>Arcane incantations or maybe less arcane standardized
>>incantations may be appropriate for embedded systems, but on a big
>>machine? No. And even on embedded systems the system could leave
>>unused words away, no need for arcane or standardized incantations.
>
>And for those systems that have a choice of (say) floating point
>packages. What does
> load-wordset float
>actually do? You now have to specify which one.
No. I would have a default, and an arcane incantation for selecting a
non-default package. I would use a command-line option or the binary
name for the selection, but as long as there is a sensible default,
any other way for selecting the non-default should be fine; or, as
Bernd suggested, if the choice depends on the actual hardware, look at
what the actual hardware is.
> The same applies
>for embedded systems. For example, on an ARM Cortex (M0/M1, M3,
>and M4) there's a choice of three instruction sets, one with 32
>bit floats. If you really want to standardise all this stuff,
>you need to standardise real life. Nobody has ever managed that.
Let's see how other compilers do it: GCC does it through command-line
options: <http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html>, in
particular --mfloat-abi=soft/softfp/hard. "The default depends on the
specific target configuration." GCC does not require arcane
incantations in the source code of the compiled program and
understands floats even if you don't specify --mfloat-abi.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2012: http://www.euroforth.org/ef12/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CfV: S>F and F>S anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-02 16:51 +0000
Re: CfV: S>F and F>S mhx@iae.nl (Marcel Hendrix) - 2012-08-02 22:28 +0200
Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-02 23:36 +0200
Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-03 04:39 -0700
Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-03 19:56 +0200
Re: CfV: S>F and F>S mhx@iae.nl (Marcel Hendrix) - 2012-08-03 21:18 +0200
Re: CfV: S>F and F>S anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-04 09:50 +0000
Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-04 21:51 +0200
Presence of standard words (was: CfV: S>F and F>S) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-05 11:07 +0000
Re: Presence of standard words (was: CfV: S>F and F>S) stephenXXX@mpeforth.com (Stephen Pelc) - 2012-08-05 11:34 +0000
Re: Presence of standard words (was: CfV: S>F and F>S) Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-05 13:59 +0200
Re: Presence of standard words (was: CfV: S>F and F>S) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-08-06 11:22 +0000
Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-04 04:50 -0700
Re: CfV: S>F and F>S stephenXXX@mpeforth.com (Stephen Pelc) - 2012-08-04 12:30 +0000
Re: CfV: S>F and F>S C G Montgomery <cgm@physics.utoledo.edu> - 2012-08-05 09:14 -0400
Re: CfV: S>F and F>S Bernd Paysan <bernd.paysan@gmx.de> - 2012-08-04 21:47 +0200
Re: CfV: S>F and F>S Krishna Myneni <krishna.myneni@ccreweb.org> - 2012-08-04 05:42 -0700
csiph-web