Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-22 Thread gabor
This significantly complicates my project. I would avoid this. After a few tests, I can say that it works correctly with the linked system unit and cmem. Unfortunately, this greatly complicates build process which is disproportionate to amount of code. So I decided to do it in C for now. Than

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-21 Thread Lars
Forgot to mention, you can also write your own system unit and swap it in place (in delphi and fpc). You can modify existing system unit or even rewrite your own system unit from scratch.. KOL/mck project does this sort of thing to decrease executable size to a miniature size. Embedded programme

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread Lars
On Thu, January 19, 2017 1:28 pm, gabor wrote: > I was hoping that maybe there is an easy answer. But I understand. > Thanks. > The easy answer is just to use the system unit and have no fear... The main issue with using fpc with C is when you try to use classes or try to use C++ classes As obje

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread Felipe Monteiro de Carvalho
On Thu, Jan 19, 2017 at 8:15 PM, gabor wrote: > problems with initialization/finalization sections). ... > I know that following types require extra code: > object, class, sting, dynamic array, try..except. > What else should I avoid? I think it is a huge exaggeration to rule out all of that. I t

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread gabor
I was hoping that maybe there is an easy answer. But I understand. Thanks. MichaƂ. W dniu 2017-01-19 o 20:28, Jonas Maebe pisze: It is therefore not possible to give an answer to your question that is generally valid. Furthermore, the answer could become wrong at any time because all of that is

Re: [fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread Jonas Maebe
On 19/01/17 20:15, gabor wrote: I would like to write some code that will be static linked with C application. In addition, I would like to avoid linking system and rtl units and would use only routines that come with C app and library (I heard that combining fpc rtl with C application is not a g

[fpc-pascal] Language constructs and types that dependent upon system unit

2017-01-19 Thread gabor
Hello! I would like to write some code that will be static linked with C application. In addition, I would like to avoid linking system and rtl units and would use only routines that come with C app and library (I heard that combining fpc rtl with C application is not a good idea and there are