[fpc-pascal] Pascal and static executable

2011-07-18 Thread ik
Hello List, I'm writing an article about modern (Object) Pascal, but there is one subject that I do not fully understand (for the article that is :)) and I wish to be prepared for it. Let's say that I write the following code: program say_hello; begin writeln('Hello'); end. This code is

Re: [fpc-pascal] Pascal and static executable

2011-07-18 Thread Jonas Maebe
On 18 Jul 2011, at 10:03, ik wrote: Let's say that I write the following code: program say_hello; begin writeln('Hello'); end. program say_helloworld; begin writeln('Hello World'); end. They both have the same size and the same memory footprint. So what exactly is going on

[fpc-pascal] Object Files

2011-07-18 Thread Lee Jenkins
Are object files platform dependent? Can you use object files created on Windows with a project compiled on Linux? Never used them before. Something tells me they ARE platform independent since they have to be linked in. -- Warm Regards, Lee

[fpc-pascal] Re: Object Files

2011-07-18 Thread leledumbo
Are object files platform dependent? No Can you use object files created on Windows with a project compiled on Linux? Only if they're cross compiled to target Linux Something tells me they ARE platform independent since they have to be linked in. Pardon me? That seems unrelated. Object

[fpc-pascal] Re: Pascal and static executable

2011-07-18 Thread leledumbo
Why does Pascal compiler generate static linked executable while C/++ compiler will generate dynamic executable ? It's really compiler dependent. There are Pascal compilers that generate dynamically linked executables by default and there are C/C++ compilers that generate static executables by

Re: [fpc-pascal] Re: Object Files

2011-07-18 Thread Sven Barth
On 18.07.2011 19:07, leledumbo wrote: Are object files platform dependent? No Depending on the context the author thought in this could have been answered with yes, mostly as well: You can't use object files from x86 on ARM or from Windows on Linux (in the sense of using the object file

Re: [fpc-pascal] Re: Object Files

2011-07-18 Thread Flávio Etrusco
On Mon, Jul 18, 2011 at 2:07 PM, leledumbo leledumbo_c...@yahoo.co.id wrote: Are object files platform dependent? No From the rest of your post I guess you mean yes, they are dependent? Something tells me they ARE platform independent since they have to be linked in. Pardon me? That