C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Anfängerfragenzu short, int, long und weitere....

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Tibor Pausz
Guest





PostPosted: Tue Apr 12, 2005 8:33 am    Post subject: Re: Anfängerfragenzu short, int, long und weitere.... Reply with quote



Ottmar Ohlemacher <2ohl......r (AT) web (DOT) de> wrote:

Quote:
Frage: Ist das nur eine Frage des Compilers, des Betriebssystems oder
der Hardware, mit wieviel Bit die jeweiligen Datentypen arbeiten?

Es ist hauptsächlich abhängig von der OS Plattform, aber in gewisser
Weise auch von der Hardware.

Quote:
3.Frage: Wenn die einzelnen Variablentypen eine unterschiedliche
Anzahl von Bits verwenden, wie verträgt sich das mit der
"Portierbarkeit" von C++ (oder C) Quellcode...oder ist eben eine
Portierung eines Programmes nur auf ein Rechner(system) möglich,
welches mindestens genau so viele Bits verwendet wie das
"Ursprungssystem" hatte?

Es gibt Mindestanforderungen seitens der ISO Norm, die im Thread schon
erwähnt wurden. Und diverse Plattformen geben darüber hinausgehende
Garantien (siehe etwa Single UNIX Spec, die zwischen ILP32 und LP64
Plattformen unterscheidet), aber dann handelt es sich nicht mehr um ein
ISO C++ Programm.

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.