[Tutor] bits taken by variable type
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 24 Jun 2002 15:01:39 +0100
------_=_NextPart_001_01C21B87.A97C0F50
Content-type: text/plain; charset="iso-8859-1"
> You can make a program on a Windows machine then transfer it to a Linux
> machine and as long as it doesn't have any platform specific programming
> in it or has been resolved to not have any conflicts I would think you
could
> just use it on both machines.
You can do the same with C/C++ but there are more platform
specifics to fall over. But if you write a sort routine or
number crunching program they will work just fine on either
platform ONCE YOU HAVE COMPILED THEM.
But having a compiler on each platform is not so very
different from having Python installed...
The differences are when you get into things like OS calls to files, sockets
etc.
Python masks many of those differences behind the os and socket modules
Which do you prefer, portable assembler or portable pseudo code?
Alan G.
------_=_NextPart_001_01C21B87.A97C0F50
Content-type: text/html; charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>> </FONT></SPAN>You can make a program
on a Windows machine then transfer it to a Linux <SPAN
class=670570014-24062002><FONT face="Courier New"
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>> </FONT> </SPAN>machine and as long as
it doesn't have any platform specific programming <SPAN
class=670570014-24062002><FONT face="Courier New"
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>> </FONT> </SPAN>in it or has been
resolved to not have any conflicts I would think you could <SPAN
class=670570014-24062002><FONT face="Courier New"
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>> </FONT> </SPAN>just use it on both
machines.<SPAN class=670570014-24062002><FONT face="Courier New"
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=670570014-24062002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>You can do the same with
C/C++</FONT> <FONT face="Courier New" color=#0000ff> but there are more
platform </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>specifics to fall over. But if you write a sort
routine or </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=670570014-24062002><FONT
face="Courier New" color=#0000ff>number crunching program they will work just
fine on either</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=670570014-24062002>platform ONCE YOU HAVE COMPILED
THEM.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=670570014-24062002></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=670570014-24062002>But having a compiler on each platform is not so very
</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=670570014-24062002>different from having Python
installed...</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2><SPAN
class=670570014-24062002></SPAN></FONT><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=670570014-24062002>The differences are
when you get into things like OS calls to files, sockets
etc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=670570014-24062002>Python masks many of
those differences behind the os and socket modules</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=670570014-24062002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=670570014-24062002>Which do you prefer,
portable assembler or portable pseudo code?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=670570014-24062002></SPAN></FONT> </DIV>
<DIV><SPAN class=670570014-24062002></SPAN><FONT face=Arial><FONT size=2>A<SPAN
class=670570014-24062002><FONT face="Courier New" color=#0000ff>lan
G. </FONT></SPAN></FONT></FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C21B87.A97C0F50--