Re: External Memory



Dag-Erling Smørgrav <des@xxxxxx> writes:
Ray Kulhanek <kulhanek.5@xxxxxxxxxx> writes:
James Kuyper <jameskuyper@xxxxxxxxxxx> writes:
Ensuring that the pieces are always suitably aligned cannot be done
portably, though there are ways of substantially reducing the
likelihood that the pieces are misaligned.
True. I hadn't thought of that. But again, if it's just an
experiment, would it need to be portable? He could google the rules
used by his specific machine and follow them.

On most modern systems, it is safe to assume that the correct alignment
for any scalar type T is sizeof(T) rounded up to the nearest power of
two.

It's probably safe to assume that that's *a* correct alignment,
but not that it's *the* correct alignment. For example, on my
system (x86 Linux, gcc), types long, long long, double, and long
double all have 4-byte alignment, though their sizes are 4, 8, 8,
and 12, respectively.

Well, I suppose it's safe to assume in the sense that being wrong
won't hurt anything.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
--
comp.lang.c.moderated - moderation address: clcm@xxxxxxxxxxxx -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
.



Relevant Pages

  • Re: Lost Shut down option at welcome screen
    ... Ramesh Srinivasan, Microsoft MVP ... Newbie Coder ... I don't recommend you download & run something that isn't proved to be safe ... I have been using newsgroups for many, many, many years. ...
    (microsoft.public.windowsxp.general)
  • Re: To use Preview Pane or not?
    ... reccomend not using it. ... >> Al Camp ... > setting) it is safe to leave the preview pane open. ... > newsgroups. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Windows 7
    ... Any one can poke fun at someone providing, if that fun turns out to be offensive, derogatory and/or libelous, they are prepared to suffer the consequences. ... If it was that easy half the monitored newsgroups would have nothing in them. ... That false name keeps you safe from other users in the newsgroup, it does not keep you safe from the law. ... Any law enforcement agency can easily track you down, all it takes is a court order. ...
    (microsoft.public.windows.vista.general)
  • Re: The Jews Want Us ALL on Statins
    ... wright@clam.prodigy.net (David Wright) wrote: ... In most newsgroups you would be absolutely right. ... he gets no responses means he's safe to tweak without creating a billion new ...
    (sci.med)