Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-06

Linux

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aitor Santamaría Merino

Hi,

A couple of questions about the linux compiler that I have remembered just now:

(1) In (at least older) versions of the Linux compiler I have seen that the compilation process has an additional phase,
Compiling ...
Assembling...
Linking...
(if I recall correctly the order). Does this mean that the compiler produces code for x86 for Linux platform, and that the code is then assembled and linked using thrid party apps? Is assembler code produced for other platforms, like GO32?

(2) If I want to produce programs in order to use X, I have seen that there's the X-forms. Do we have units to link directly to X libraries? I would like to use something like a Graphics unit (PutPixel, etc.) under X (also avoiding using Lazarus, or in general, avoiding linking code to a windowmanager).

Aitor

Michael Van Canneyt
to Aitor Santamaría Merino
Show quoted text 14 lines
Hi, A couple of questions about the linux compiler that I have remembered just now: (1) In (at least older) versions of the Linux compiler I have seen that the compilation process has an additional phase, Compiling ... Assembling... Linking... (if I recall correctly the order). Does this mean that the compiler produces code for x86 for Linux platform, and that the code is then assembled and linked using thrid party apps? Is assembler code produced for other platforms, like GO32?

The compiler can use an internal assembler or an external one. You can cross-compile if you want, but then you need the correct linker for the target OS.

(2) If I want to produce programs in order to use X, I have seen that there's the X-forms. Do we have units to link directly to X libraries?

Yes, see Xlib.

I would like to use something like a Graphics unit (PutPixel, etc.) under X (also avoiding using Lazarus, or in general, avoiding linking code to a windowmanager).

It is probably possible using xlib, but using GTK or so would definitely be easier.

Don't forget that X uses an event loop, so emulating a Graphics unit is not going to be easy.

Michael.

Ulrich Floer
to Michael Van Canneyt: The compiler can use an internal assembler or an external one. You can cross-compile if…
Show quoted text 18 lines
> (2) If I want to produce programs in order to use X, I have seen that > there's the X-forms. Do we have units to link directly to X libraries? Yes, see Xlib. > I would like to use something like a Graphics unit (PutPixel, etc.) under > X (also avoiding using Lazarus, or in general, avoiding linking code to > a windowmanager). It is probably possible using xlib, but using GTK or so would definitely be easier. Don't forget that X uses an event loop, so emulating a Graphics unit is not going to be easy.

For an "easy to use" grafic interface, look at:
HTTP://www.japi.de
It runs on M$ + linux + other
with c,c++,pascal,fortran...

uli