Article View: comp.protocols.tcp-ip
Article #8039Re: Help about this code?
From: Goran Larsson
Date: Wed, 27 Dec 1995 14:51
Date: Wed, 27 Dec 1995 14:51
29 lines
1483 bytes
1483 bytes
In article <4bprle$n2k@news.tuwien.ac.at>,
Seda Oezses <e8927426@fbma.tuwien.ac.at> wrote:
> void main(void)
Anything can happen if you lie to the compiler. The function main
returns an int, nothing else.
> - On a SUN SPARCclasic (Solaris 2.4) the result was a Bus error.
This is what I expect if you do unaligned accesses.
> - On a DECStation 5500 (ULTRIX 4.4) program run and printed 10 but with a
> message "Fixed up unaligned data access for pid 25977 (a.out) at pc 0x400678".
This is stupid. They are just trying to be kind, but are giving you a
huge performance penalty.
> - On a RISC/6000 (AIX ??) program run without an error or warning.
Perhaps that processor can do unaligned accesses? I've never seen a RISC
processor that allowed unaligned accesses, so AIX is probably handling it
with a huge performance penalty.
--
Goran Larsson Phone: +46 13 299588 FAX: +46 13 299022
Approve AB +46 589 12810 +46 589 16901
hoh@approve.se
I was an atheist, until I found out I was God.
Technical Details
Message-ID:
<1995Dec27.145139.29380@lorelei.approve.se>Path:
arc1-ca.pugleaf.net!mn4.swip.net!lorelei!not-for-mailReferences:
<4bprle$n2k@news.tuwien.ac.at>Show Full Headers
Complete Article Headers
Newsgroups: comp.protocols.tcp-ip,comp.lang.c Path: arc1-ca.pugleaf.net!mn4.swip.net!lorelei!not-for-mail From: hoh@lorelei.approve.se (Goran Larsson) Subject: Re: Help about this code? Message-ID: <1995Dec27.145139.29380@lorelei.approve.se> Sender: hoh@lorelei.approve.se (Goran Larsson) Organization: The Hacker of Hackefors References: <4bprle$n2k@news.tuwien.ac.at> Date: Wed, 27 Dec 1995 14:51:39 GMT