PB's linker ???

Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

PB's linker ???

Post 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...)
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post 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?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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...
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 ?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

What do you mean?
The library compression has nothing to do with the final executable size!?
Good programmers don't comment their code. It was hard to write, should be hard to read.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 ;)
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post 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? ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

I don't know ;)
Well, it's because of gcc then ;)
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post 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?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Good question, I'm on windows for the moment, I'll check tomorrow or later ;)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 :)
Hatonastick
Enthusiast
Enthusiast
Posts: 149
Joined: Wed Apr 27, 2005 11:50 am
Location: Adelaide, Australia
Contact:

Post 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++.
akee
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Post 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:
Post Reply