We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Andrew Bromage
mmozeiko Yes, currently compilers use stack like this. But nothing is preventing compiler writers…
»
Mārtiņš Možeiko
Show us the commandline you are invoking. Probably forgot to put something in quotes.
»
Zoltan Stomfai
Hi there fellow Handmade Heroes! I've just started the series, and not a big fan of emacs. Tryin…
»
Mattie
If you have to explicitly declare that you're going to be referencing data in a "popped" stack fr…
»
Mārtiņš Možeiko
Another good code to look at: https://github.com/emoon/minifb It's a very small library that open…
»
Mārtiņš Možeiko
Yes, currently compilers use stack like this. But nothing is preventing compiler writers to use/a…
»
Mārtiņš Možeiko
One more tip on STL containers - preallocate memory for containers before using them (with reserv…
»
Adam
Just an update to this, thought I would add in a link I found as a helpful starting point for any…
»
Johannes Norneby
Hoho, I didn't know about unordered_map, maybe I should read the STL documentation... :) Most of…
»
Jonathan García
Hello everyone! Casey, just wanted to point out that in the process of replacing the "slot" thin…
»
Carlos Gabriel Hasbun Comandari
I don't even know where to complain about my previous new topic being lost, I guess a moderator c…
»
Patrick Lahey
That's a much bigger difference than I have personally seen in practice. You have to know visual…
»
Dumitru Frunza
Isn't the nature of stack allocation such that if a frame has been popped out, that frame is esse…
»
Benjamin Kloster
with a simple array template I was able to beat std::vector by about 7x for one use case. Could…
»
Andrew Chronister
While vector and unordered_map may be among the more performant containers in the STL, they have …
»
Raxfale
Also, if you have the option for a newish compiler, the ranged base for loops can get rid of many…
»
Carlos Gabriel Hasbun Comandari
I don't know why, wherever I go, whichever website I visit, anything that even remotely attempts …
»
itzjac
That's the reason! Thanks!
»
Mārtiņš Možeiko
Oh, I see the problem now. First of all - when such program is compiled with optimizations turne…
»
itzjac
I've got it. 1cl -Ox -F4194304 -FC -Zi ..\code\Source.cpp user32.lib gdi32.lib With such …
»
itzjac
I don't know how would I corrupt my stack by entering WinMain, the big array is declared right in…
»
Mārtiņš Možeiko
If you are embracing C++ then I see no reason to not use STL. And if you don't care about items …
»
Mārtiņš Možeiko
Are you sure it is allocation that crashes not some stack corruption? _chkstk typically asserts i…
»
itzjac
Alright I found the problem, Debug builds. How come your builds are by default in release mode? …
»
itzjac
Hi! Thank you for the hint. Still doesn't work. I tried also executing the commands from an adm…
»
Johannes Norneby
I used to write all my own datastructures, and used template based linked lists a LOT. I pretty m…
»
Miguel Lechón
I count four in favor of issue creation and none against, so I've created the issues I skipped th…
»
Casey Muratori
I used my remedial Joomla skills to add a "Search the Forums" option to the "Your Account" menu t…
»
dvkirn
Techne is a text editor partially inspired by HMH that I've been working on in my spare time. I d…
»
Casey Muratori
We could change it to a SafeTruncateToInt16 if you remind me... - Casey
»