Re: subroutine stack and C machine model



On 2009-10-31, Richard Heathfield <rjh@xxxxxxxxxxxxxxx> wrote:
It just happens to be the version I have. (In my defence, I didn't
actually buy it. A friend saw it on a remainder pile for a couple of
quid, and grabbed it as a gift for me. How nice.) If you have any
specific questions about it, let me know.

Check the example, probably right near page 53, of the "put_rec" function
which tries to write an array to disk (using sizeof(rec) to obtain
the size of an array argument...).

I believe that in the 2nd edition, the test is
if(len <> 1)

(Note: I just checked that it is page 53 in the third edition. I last
looked at that, I think, in 1995 or so. I have no idea why I remember
this and can only find my car keys about one day in two.)

-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@xxxxxxxxx
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
.



Relevant Pages

  • Re: efficient twos complement of a byte array
    ... the modern Intel processor's gift to you. ... as taking the two's-complement of a byte array was optimized into some ... take the two's complement of each one. ... If you want twos-complement then it won't fly: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: efficient twos complement of a byte array
    ... the modern Intel processor's gift to you. ... as taking the two's-complement of a byte array was optimized into some ... take the two's complement of each one. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: efficient twos complement of a byte array
    ... I don't know if it's particularly _Microsoft's_ gift to you. ... as taking the two's-complement of a byte array was optimized into some ... take the two's complement of each one. ... That's pretty darned easy. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: efficient twos complement of a byte array
    ... I don't know if it's particularly _Microsoft's_ gift to you. ... as taking the two's-complement of a byte array was optimized into some ... take the two's complement of each one. ... That's pretty darned easy. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: efficient twos complement of a byte array
    ... I don't know if it's particularly _Microsoft's_ gift to you. ... as taking the two's-complement of a byte array was optimized into some ... take the two's complement of each one. ... That's pretty darned easy. ...
    (microsoft.public.dotnet.languages.csharp)