473,408 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

how to use large memory with gcc in AIX of IBM P650

fan
Now, I am compile c program with gcc3.3.2 in AIX of IBM p650. The gcc
compiler cannot alloc the memory more than 256M. How can I alloc more
memory.
Nov 14 '05 #1
4 2467
fa****@yahoo.com (fan) writes:
Now, I am compile c program with gcc3.3.2 in AIX of IBM p650. The gcc
compiler cannot alloc the memory more than 256M. How can I alloc more
memory.


That's not really a C question (or rather, it's not a question that
really has a C answer). Try comp.unix.programming.

You might also try rephrasing your question to make it clear whether
it's gcc or your program is trying to allocate more than 256M.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>
Schroedinger does Shakespeare: "To be *and* not to be"
(Note new e-mail address)
Nov 14 '05 #2

"fan" <fa****@yahoo.com> wrote in message
Now, I am compile c program with gcc3.3.2 in AIX of IBM p650.
The gcc compiler cannot alloc the memory more than 256M. How can
I alloc more memory.

This is a limitation built into your compiler. The real answer is to get a
different compiler.
It may be possible to write functions bigmalloc() and bigfree() in assembly
langauge to do what you want, but I suspect it won't be easy - the 256MB
limit will be there for a reason.
Anyway, 256 MB should be enough for anyone.
Nov 14 '05 #3
Malcolm wrote:

"fan" <fa****@yahoo.com> wrote in message
Now, I am compile c program with gcc3.3.2 in AIX of IBM p650.
The gcc compiler cannot alloc the memory more than 256M. How can
I alloc more memory.

This is a limitation built into your compiler. The real answer is to get a
different compiler.
It may be possible to write functions bigmalloc() and bigfree() in assembly
langauge to do what you want, but I suspect it won't be easy - the 256MB
limit will be there for a reason.
Anyway, 256 MB should be enough for anyone.


Twenty years ago 640 KB was enough for anyone. :-)
--
Joe Wright http://www.jw-wright.com
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Nov 14 '05 #4


Malcolm wrote:
"fan" <fa****@yahoo.com> wrote in message
Now, I am compile c program with gcc3.3.2 in AIX of IBM p650.
The gcc compiler cannot alloc the memory more than 256M. How can
I alloc more memory.


This is a limitation built into your compiler. The real answer is to get a
different compiler.
It may be possible to write functions bigmalloc() and bigfree() in assembly
langauge to do what you want, but I suspect it won't be easy - the 256MB
limit will be there for a reason.
Anyway, 256 MB should be enough for anyone.


Actually it isn't a limitation of the compiler as such, it's the OS and
can be solved with a different compiler with the correct flags available
OR an environment variable depending on the version of AIX. That's the
problem with answering OT questions in clc with nonsense about assembly
langauge, instead of just redirecting them.

The OP should run along to comp.unix.aix and could do worse that
Googling for "maxdata" and/or "LDR_CNTRL".

Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DJTB | last post by:
zodb-dev@zope.org] Hi, I'm having problems storing large amounts of objects in a ZODB. After committing changes to the database, elements are not cleared from memory. Since the number of...
3
by: WinstonSmith | last post by:
Hello everyone, I got a problem about GC when creating large fields (some MB), set reference to null and call GC.Collect. Not all virtual mem is released. Situation improved in .net 1.1 but not...
2
by: assi | last post by:
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies:...
1
by: lwickland | last post by:
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately large bytes when sending large post data. The following application consumes inordinate quantities of memory. My code...
12
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
4
by: =?Utf-8?B?VzFsZDBuZTc0?= | last post by:
When one architects a new project one of the first steps in the decision is to decide on the layers. (In my opinion anyway) One architecture that I have used before is to go solid OO and create...
1
by: Jonathan Wilson | last post by:
I am working on some software which has to deal with data that could be as large as 500mb or so. Currently I am using new and delete to manage this memory but I find it is not ideal and sometimes...
17
by: byte8bits | last post by:
How does C++ safely open and read very large files? For example, say I have 1GB of physical memory and I open a 4GB file and attempt to read it like so: #include <iostream> #include <fstream>...
4
by: =?Utf-8?B?U2VyZ2Vp?= | last post by:
Dear staff Can I get your assistance with \3GB (LARGEADDRESSAWARE) switch in mixed mode process built by VS 2008, please? I have a mixed mode application: C# GUI calling native C++ DLL through...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.