Thursday, March 28, 2013

Re: [LINUX_Newbies] What is bat com exe in Linux?

>
> *
> OK
>
> But when I
> comile 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.

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. 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


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)

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'



>
>

>
>
> "Gnu Compiler Collection"
> Is this a good idea to use it as beginner?
>


Yup, it can be quite simple to use 'gpc myprog.pas -omyprog' on the
command line. As you learn more, and your programs get more
sophisticated you get more interested in the compiler. Also you can
start using simple makefiles and the like. fpc is probably a better
pascal compiler specially when coupled with lazarus (the ide)

You can usually rely on any linux machine having gcc installed whereas
fpc is not as common.



Trev.



------------------------------------

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