Page 1 of 2

off topic: Xharbour mingw 32 bits

Posted: Sat Oct 12, 2024 12:12 am
by JoséQuintas
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

Re: off topic: Xharbour mingw 32 bits

Posted: Sat Oct 12, 2024 6:45 am
by Antonio Linares
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.

Re: off topic: Xharbour mingw 32 bits

Posted: Wed Oct 16, 2024 8:56 pm
by carlos vargas
in my test, harbour with mingw, bcc, msvc 32 bits

in mingw32 14.2 ->4gb
in msvc32 -> 2gb
in bcc770 32 bits -> 2gb

Re: off topic: Xharbour mingw 32 bits

Posted: Thu Oct 17, 2024 12:57 am
by Antonio Linares
very good news,

thanks Carlos!

Re: off topic: Xharbour mingw 32 bits

Posted: Sun Oct 27, 2024 12:45 pm
by JoséQuintas
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.

Re: off topic: Xharbour mingw 32 bits

Posted: Sun Oct 27, 2024 3:15 pm
by Enrico Maria Giordano
With MSC32, just add this link switch:

Code: Select all | Expand

 /LARGEADDRESSAWARE

Re: off topic: Xharbour mingw 32 bits

Posted: Sun Oct 27, 2024 3:26 pm
by Enrico Maria Giordano
And this is for BCC32:

Code: Select all | Expand

-GF:LARGEADDRESSAWARE

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 12:17 pm
by karinha
Enrico Maria Giordano wrote:And this is for BCC32:

Code: Select all | Expand

-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.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 1:55 pm
by Enrico Maria Giordano
Yes, now I'm using it. No problem so far.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 2:11 pm
by karinha
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.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 2:18 pm
by Enrico Maria Giordano
Just add this line to your ilink32.cfg:

Code: Select all | Expand

-GF:LARGEADDRESSAWARE

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 2:29 pm
by karinha
Enrico Maria Giordano wrote:Just add this line to your ilink32.cfg:

Code: Select all | Expand

-GF:LARGEADDRESSAWARE
So is that correct?

Code: Select all | Expand

-Gn
-GF:LARGEADDRESSAWARE
-Lc:\bcc77\lib;c:\bcc77\lib\psdk
-aa
-x
 
Gracias, tks.

Regards, saludos.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 2:32 pm
by Enrico Maria Giordano
Yes.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 2:37 pm
by karinha
Enrico Maria Giordano wrote:Yes.
Thank you!

Enrico, do you know all these commands?

https://docwiki.embarcadero.com/RADStud ... mmand_Line

Regards, saludos.

Re: off topic: Xharbour mingw 32 bits

Posted: Mon Oct 28, 2024 3:02 pm
by Enrico Maria Giordano
That link is not valid.