home *** CD-ROM | disk | FTP | other *** search
- Path: vb.franken.de!volker
- From: volker@vb.franken.de (Volker Barthelmann)
- Subject: Re: PPC compilers
- Newsgroups: comp.sys.amiga.programmer
- References: <4com6v$415@maureen.teleport.com> <jasonb.821098303@cs.uwa.edu.au>
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- Message-ID: <volker.0e58@vb.franken.de>
- Date: 8 Jan 96 22:59:03 MET
- Organization: home
-
- Jason S Birch (jasonb@cs.uwa.edu.au) wrote:
- :
- : Again: *If* he's trying to create a data type with certain
- : implementation-dependent size-requirements (such as in the bltcon0
- : case, assuming no headers to give us one) *then*, at that point in
- : time, he has to know the size of the type in order to define it
- : correctly. He stated that earlier - check what I've underlined.
- : However, once done, he can then safely create variables of that type
- : (the abstract one he's defined, which happens to be the right size) and
- : safely assign appropriate values to them, without having to worry if
- : the eventual assignments are implemented as a .c, .w, or .l. He can
-
- In many cases, but not in all cases. It might e.g. be impossible to declare
- certain hardware registers precise enough in a HLL. So the programmer has to
- know its representation and has to do it by hand.
-
- : The question is not about whether you need to know if a variable is a
- : float or a long, since they are "abstract" types (and can be different
- : sizes on different machines). The question is whether you need to know
- : how many bits are in each, and what each bit means. In assembler, you
- : do need to know the former, and occasionally the latter.
-
- You sometimes need to know it in HLLs, too. Numerical calculations almost
- always need very detailed information on the data types. Just have a look
- at a C compiler's float.h.
-
- In many cases You can forget such things after the declaration, but there
- are lots of other cases, too.
-
- Volker
-
-