FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour off topic: Xharbour mingw 32 bits
Posts: 104
Joined: Tue Feb 09, 2021 04:20 PM
off topic: Xharbour mingw 32 bits
Posted: Sat Oct 12, 2024 12:12 AM

helping a friend.

Memory(0) on harbour 32 bits and mingw:

  • 2GB mingw 6.4

  • 3GB later

  • 4GB mingw 14.2

Is it the same on XHarbour ?

mingw 32 bits, NOT 64 bits

José M. C. Quintas Brazil

gtwvg, fivewin 25.12, hwgui, mingw 15.2 (32 bits)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Sat Oct 12, 2024 06:45 AM
Dear Jose,
Memory(0) on harbour 32 bits and mingw:
- 2GB mingw 6.4
- 3GB later
- 4GB mingw 14.2
have you tested these values yourself ? Windows 32 bits does not gives you 4GB even if theoretically should be possible.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Wed Oct 16, 2024 08:56 PM

in my test, harbour with mingw, bcc, msvc 32 bits

in mingw32 14.2 ->4gb

in msvc32 -> 2gb

in bcc770 32 bits -> 2gb

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Thu Oct 17, 2024 12:57 AM

very good news,

thanks Carlos!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 104
Joined: Tue Feb 09, 2021 04:20 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Sun Oct 27, 2024 12:45 PM

32 bits limit is 4GB.

On Windows 32 bits, memory is used by Windows and video too, application is limited to remaining memory.

On Windows 64 bits, a 32 bits application can use up to 4GB memory.

Sometimes this may be helpfull, but seems that only mingw was updated.

José M. C. Quintas Brazil

gtwvg, fivewin 25.12, hwgui, mingw 15.2 (32 bits)

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Sun Oct 27, 2024 03:15 PM
With MSC32, just add this link switch:
Code (fw): Select all Collapse
 /LARGEADDRESSAWARE
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Sun Oct 27, 2024 03:26 PM
And this is for BCC32:
Code (fw): Select all Collapse
-GF:LARGEADDRESSAWARE
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 12:17 PM
Enrico Maria Giordano wrote:And this is for BCC32:
Code (fw): Select all Collapse
-GF:LARGEADDRESSAWARE
Buenos días Enrique. ¿Alguna vez has usado este comando? ¿Crees que es una buena idea? ¿No arruinará eso la memoria? ¿Puedo poner este comando en BUILDX.BAT para probar?

Good morning Enrico. Have you ever used this command? Do you think it's a good idea? Won't that blow the memory? Can I put this command in BUILDX.BAT to test?

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 01:55 PM

Yes, now I'm using it. No problem so far.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 02:11 PM
Enrico Maria Giordano wrote:Yes, now I'm using it. No problem so far.
Enrico, without abusing his good will, could show the SYNTAX of what the writing would look like in BUILDX.bat, I'm not in the mood to take risks.

Enrico, sin abusar de su buena voluntad, podría mostrar la SINTAXIS de cómo quedaría la escritura en BUILDX.bat?

Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 02:18 PM
Just add this line to your ilink32.cfg:
Code (fw): Select all Collapse
-GF:LARGEADDRESSAWARE
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 02:29 PM
Enrico Maria Giordano wrote:Just add this line to your ilink32.cfg:
Code (fw): Select all Collapse
-GF:LARGEADDRESSAWARE
So is that correct?
Code (fw): Select all Collapse
-Gn
-GF:LARGEADDRESSAWARE
-Lc:\bcc77\lib;c:\bcc77\lib\psdk
-aa
-x
Gracias, tks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 02:32 PM

Yes.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 02:37 PM
Enrico Maria Giordano wrote:Yes.
Thank you!

Enrico, do you know all these commands?

https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_ILINK32_and_ILINK64_on_the_Command_Line

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: off topic: Xharbour mingw 32 bits
Posted: Mon Oct 28, 2024 03:02 PM

That link is not valid.