Page 1 of 1

PB's linker ???

Posted: Tue Apr 26, 2005 1:04 pm
by Polo
Hi !
It seems that Purebasic is using GCC for linking on Linux...
Why Purebasic is not using GCC also on windows, instead of PellesC ?
GCC is a lot better, support c++, and it seems it's more compatible when doing userlibraries in c ;)
It would be good if that could be added ;) (maybe it's not possible, I don't know...)

Posted: Tue Apr 26, 2005 1:15 pm
by GedB
On Windows GCC uses MingW, a Linux compatability layer.

This adds a significant overhead to the final binary.

Have you seen how people react if Fred adds even 2k to the executable?

Posted: Tue Apr 26, 2005 1:20 pm
by Polo
I myself react when he adds 2k to the executable :)
Well, i thought it was acting like an usual linker on windows too... Sad because it seems it's doing a great job on Linux...

Posted: Tue Apr 26, 2005 1:31 pm
by Polo
Talking of size.... I don't know if someone has realized, but... since there's no compression in the library in PB's linux version, the executable created are really big :cry:
I would be nice to know if compression will be added one day ?

Posted: Tue Apr 26, 2005 2:20 pm
by traumatic
What do you mean?
The library compression has nothing to do with the final executable size!?

Posted: Tue Apr 26, 2005 2:40 pm
by Polo
Well, I don't know then... But i created a program with only a window and a Repeat/until Windowevent()=#pb_event_closewindow, and it was already 15k ! I don't think it's so big on windows ;)

Posted: Tue Apr 26, 2005 3:52 pm
by traumatic
I don't know but I think it's safe to assume GCC produces bigger executables.

How big is a PB linux exe without any functions in it?
Not 2.5kb like under Windows, right? ;)

Posted: Tue Apr 26, 2005 5:10 pm
by Polo
I don't know ;)
Well, it's because of gcc then ;)

Posted: Tue Apr 26, 2005 5:29 pm
by GedB
It could be GTK, since the WindowEvent() function will cause the Window library to be included.

What is the size of an executable without any commands from the Window library?

Posted: Tue Apr 26, 2005 5:40 pm
by Polo
Good question, I'm on windows for the moment, I'll check tomorrow or later ;)

Posted: Sun May 01, 2005 9:51 am
by Polo
BTW, is it possible for Purebasic to use the Borland's linker ? It doesn't seems to be free, but it's c++, good for compatibility :)

Posted: Mon May 02, 2005 9:53 am
by Hatonastick
As long as it's not at the expense of Pelles C or Lcc-Win. ie. they aren't replaced by Borland C++.

Posted: Tue May 03, 2005 6:47 am
by akee
Hatonastick wrote:As long as it's not at the expense of Pelles C or Lcc-Win. ie. they aren't replaced by Borland C++.
or Microsoft's .NET... Heck No!

Here we call Borland C++ as Boring C++ and Microsoft as Microsuck because of the huge executable sizes. Feels like the whole operating system get's copied with your .exe :wink: