answersLogoWhite

0


Best Answer

If a stack is overflowing then there is usually some fundamental flaw in the program design. The best solution is to redesign the program. That said, one possible workaround might be to turn off optimisations with QMAKE_CXXFLAGS += -O0. However, it's far better to understand exactly why the stack is overflowing in the first place, and redesign the code to ensure it never happens. If you genuinely need a larger stack, then you can alter it programmatically using setrlimit.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you increase the stack size of cc1plus dot exe for GCC 4 5 2 so it doesn't stack overflow?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Algorithm for implementing push operation on stack?

1. If TOP = MAXSTK THEN [Stack already filled?] Print "OVERFLOW" Go to step 4 Endif 2. TOP = TOP + 1 [Increase TOP by 1] 3. Set ST[STOP] = ITEM [Insert ITEM in new TOP position] 4. End


Why doesn't this Python code do what it's supposed to do - see Discussion?

Ask on Stack Overflow. Wiki Answers is not for pasting code


What does stack overflow at line 104 mean How can you remove it?

Go to line 104, look carefully (ask someone else if you could not spot it). You either have a method or property name referenced within the same method or property. Or, you may have A calls B, B calls C, C calls A, a circular recursive chain... It is common to have stack overflow with recursive call (unintentionally of course)


Define list of operation on stack?

There are 4 main widely used stack operations.Operations:* POP - increase stack pointer and return top element * PUSH - putting element into stack's top * TOP - returns data of top element on stack * LENGTH/SIZE - returns number of elements inside stack For more detailed implementation details, please check web links.


What are overflow and underflow conditions in stack?

A stack overflow occurs when the on--chip stack capacity is exceeded. This can be detected by a comparison of the top-pointer, the last-pointer and the index specified for a create-frame operation ( for push). Initially the top-pointer is set to 1 and the last-pointer to 0, placing a dummy element on the stack.If an index specified for a read access is greater than the number of valid on--chip stack elements, a stack underflowoccursQueue overflow results from trying to add an element onto a full queue and queue underflow happens when trying to remove an element from an empty queue.

Related questions

How do you clear a stack overflow?

How do you clear a stack overflow


When was Stack Overflow created?

Stack Overflow was created in 2008.


Stack overflow at line 597?

how to fix stack overflow at line 597


What is a message from webpage stack overflow at line 158?

Thuynch2003@yahoo.com stack overflow at line 158


What is the meaning of stack-based buffer overflow?

A buffer overflow occurs when you put more stuff into it than it can hold. For a stack, it means you put or pushed onto the stack more information than the size of the stack.If I have a stack that can hold 10 entries, then putting 11 in the stack will overflow it.


How do you fix the problem of a stack overflow?

(whodatrml1@yahoo.com). How do i solve problem of stack overflow? Can I do without spending money? Thank you


How do you stop stack overflow line 160?

restart your computer, it will clear the overcommitted stack


What is Stack overflow at line?

A stack overflow is a type of buffer overflow in which an array writes memory outside of the array boundaries. The keyword here is "stack". The stack is a section in memory in which local variables and other program data are kept for future reference. When the stack gets overflown, adjacent program memory, such as variables, pointers, etc, will be overwritten and cause your program to crash.


How do fixed a stack overflow at line 203?

Allocate more memory to the stack or write code that does not leave stuff on the stack.


What is the meaning of a stack overflow?

A stack overflow is a programming term used to identify when a function tries to access memory from a stack that does not exist. A stack, such as a queue or array, contains a limited number of memory spaces set aside when it is created. For example, if an array has 8 objects in it and a function tried to access an item at slot nine, which doesn't exist, it would cause a stack overflow.


How do you fix stack overflow on a computer?

A quick fix for stack overflow problems is to run a registry cleaning program. There are a lot of them out there so just search for Registry Cleaner.


What does stack overflow at line 16 mean?

If one sees stack overflow at line 13 on the monitor, it means there has been an error. The website is not responding, therefore, one has to wait for a few minutes for the website to be functional again.