home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!axion!gssec.bt.co.uk!awright
- From: awright@gssec.bt.co.uk (Alan Wright)
- Newsgroups: comp.lang.c
- Subject: Re: What do you say.
- Message-ID: <1992Dec16.124915.17873@gssec.bt.co.uk>
- Date: 16 Dec 92 12:49:15 GMT
- References: <9212072102.AA08844@spirit.aud.alcatel.com> <1992Dec8.014940.5497@fs7.ece.cmu.edu> <9DEC199211285049@accvio.intel.com>
- Sender: usenet@gssec.bt.co.uk
- Organization: BT, Software Engineering Centre, Glasgow, UK
- Lines: 39
-
- In article <9DEC199211285049@accvio.intel.com>,
- dmills@accvio.intel.com (Dave Mills) writes:
- |>
- |> I did a lot of firmware development in the early eighties, and was always
- |> running up against the wall on code size not fitting into the ROM's. One
- |> day, a marketing type was hanging around, and we were discussing this
- |> situation, and he suggested I remove all those comments from my code to
- |> save some more space.
- |>
- |> ..what do you say...
- |>
- |> Dave
-
- Well having worked with the early versions of the Intel 80376 C compiler
- (1.0 - 1.2) I think he may not be the only one that thinks that way.
- We had many problems but there were two that caused much amusement
- when considered together. Both involved the compiler producing incorrect
- code. Don't take this the wrong way, I'm not attacking Intel.
-
- One was that the base address of a lookup table was not loaded before
- the table was indexed. The support-line suggested using a pointer to
- index the array. The other was to do with indexing an array using a
- pointer. The support-line suggested we use a lookup table.
-
- Now in this case there is no difference between = and == because
- invariably the answer is general protection fault.
-
- However, if any of your funding comes from marketing then you should
- ask for more money to buy bigger ROM's. After all, if you removed the
- comments how would the processor know what to do with the code?
-
- To answer the original question my old team leader would have said
- "RTFM" and wandered off with a :-).
-
- -- Alan
- --------------------------------------------
- awright@gssec.bt.co.uk (Alan Wright)
- BT, Software Engineering Centre, Glasgow, UK
- --------------------------------------------
-