POV-Ray : Newsgroups : povray.off-topic : Adventures with digital painting : Re: Adventures with digital painting Server Time
11 Oct 2024 21:19:44 EDT (-0400)
  Re: Adventures with digital painting  
From: Nicolas Alvarez
Date: 10 Mar 2008 08:53:13
Message: <47d53d49$1@news.povray.org>

>>> Shouldn't the compiler be dealing with those issues?
>>
>> No. If the compiler "dealt" with little endian and big endian, by 
>> making the C code always see one or the other, it would make the other 
>> architecture much slower.
> 
> What I meant was, shouldn't the programmer be able to just write their 
> program, and let the compiler generate the correct code depending on the 
> actual processor architecture?
> 
> But then, since C is little more than semi-portable machine code, I 
> guess that would be quite hard to do.

Of course there is a lot of code that can be written without caring 
about endianness. In which case you wouldn't tell autoconf to do that check.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.