{SOLVED] What C compiler do I need to compile a program that can access more that 4GB of memory?

About programming and getting involved with Linux Mint development
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
cpergiel
Level 3
Level 3
Posts: 110
Joined: Mon Feb 16, 2015 9:03 pm
Location: Silicon Forest
Contact:

{SOLVED] What C compiler do I need to compile a program that can access more that 4GB of memory?

Post by cpergiel »

Never mind. I was confused. The compiler I have has big pointers and I can allocate more than 4GB of memory. Now all I have to do is figure out why I cannot allocate more than 20 GB of space.
I'm running Linux Mint on a 64-bit Intel machine with 16 GB of memory.
Last edited by LockBot on Mon Apr 24, 2023 10:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: What C compiler do I need to compile a program that can access more that 4GB of memory?

Post by deepakdeshp »

Please post output of command

Code: Select all

 inxi -Fxxxrz
in code tags
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: What C compiler do I need to compile a program that can access more that 4GB of memory?

Post by deepakdeshp »

What error do you get when allocating memory beyond 4gb using gcc?
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Programming & Development”