Fr Apr 26 08:19:33 2013
Good morning
Thank You for help.
>> But when I
>> compile with Xubuntu
>> the file doit.pas to doit.out
>> it only is able to run with a Debian Linux.
>> Is this right?
>>
> It is a little complex, mostly the program will run on most versions of
> linux.
> *
> How about the big families
> deb
> and
> Fedora?
They are roughly the same underneath at a high level, The major
differences probably will not affect your programs, unless you do
something like directly call the Kernel (for instance to directly
control hardware) or the X server. If as you say later you are using
the language high level command (read,write) you'll be fine and your
code will run on most any linux.
*
Question:
I was thinking about it.
Maybe I am using 32 or 64 Linux distribution.
Example: 64.
Can a user with 32 use my compiled file?
> BUT (There's always a but) your compiler will detect your computers cpu
> type and compile for that it may produce very plain code which will run
> on just about any machine but it might not.
> *
> Does this mean
> pascalcode.pas
> tranlated to
> pascalcode.out
> is running only the computer
> where I did compile it?
No, it will run happily on most linux machines if you compiled it on a
linux machine.
*
So there is no problem with
Fedora and Debian?
> But
> pascalcode.pas compiled by Doscompiler als pascalcode.out is running
> on every Dosmachine?
>
> My development machine is a
> 64 bit/ 8 processor machine and I often target it, the code would not
> run on a 32 bit machine or a single cpu core. if you have an amd chip
> you might have problems with intel machines and vice versa*
> *
> How about to compile with 32 bit Linux
> and then use a 64 bit Linux?
Should be ok, 64 bit linux contains a set of 32 bit lib's code should
just run.
if you run fpc -iTP it will tell you what processor it is compiling for
fpc -iTO returns the target operating system.
*
OK
> If you link to librarys you need to check that they are available on the
> machine running your program. this is specially true of those librarys
> that are 'dynamically' linked (.dll in windows, .so in linux)
> *
> What is the problem
> if I do not use libraries
> also simple commands like write read and so on?
>
Then you won't encounter any problems
*
Thank You.
> mostly in the linux world programs are distributed either in source form
> (in a tar ball file ending .tgz) which you unzip then run the old
> configure / make / make install or as packages (.deb or .rpm) both of
> which check for all the 'dependencies'
> *
> Does that mean
> example
> Pascal
> there are distributed source.pas files?
Not 100% sure if you are asking, is there any pascal based open source
packages out there ?
*
No
Sorry.
The question is or the question was
Should I send the code
program.pas instead of program.out
to friends.
Is there a common way
to send a way that the friend can compile it by himself?
yes there are, I can't remember there names of the
top of my head but the fpc site used to list them, as did the lazarus site.
You can also write your own
*
Thank You.
> Also you can
> start using simple makefiles and the like. fpc is probably a better
> pascal compiler specially when coupled with lazarus (the ide)
> *
> Here in the mailing list
> some told me
> Lazarus is better
> others told me
> GNU is better.
>
really down to personal preference, since there both free you could try
them and pick one.
*
Thank You for help.
Regards
Sophie
------------------------------------
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/LINUX_Newbies/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/LINUX_Newbies/join
(Yahoo! ID required)
<*> To change settings via email:
LINUX_Newbies-digest@yahoogroups.com
LINUX_Newbies-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
LINUX_Newbies-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment