flat assembler
Message board for the users of flat assembler.

Index > Heap > HLLs suck!

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Author
Thread Post new topic Reply to topic
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
You know, you may be right that it may have been a debug version or something like that.

Can you disable this stupid "automatic" optimization though and apply it only on functions you want? (I'm asking for gcc, since I'm kinda new to it, you may have more experience).

_________________
Previously known as The_Grey_Beast
Post 30 Dec 2009, 00:44
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Borsuc wrote:
You know, you may be right that it may have been a debug version or something like that.

Can you disable this stupid "automatic" optimization though and apply it only on functions you want? (I'm asking for gcc, since I'm kinda new to it, you may have more experience).
Good question actually Smile - I just realized that my own fSekrit has a bunch of this 0xCC padding. Not very large amounts, looks like it's 16byte alignment; haven't checked very deeply, so can't yet comment whether it's done at function boundary (which doesn't make too much sense) or .obj module boundary (which would make sense).

I haven't dealt with gcc for quite a while, last time I was interested mingw was still stuck in 3.x whereas 4.x was released... and since VC++ is available for free, why bother Smile

_________________
Image - carpe noctem
Post 30 Dec 2009, 12:28
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
I would guess that -O2 disables padding
Post 30 Dec 2009, 12:33
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Fanael



Joined: 03 Jul 2009
Posts: 168
Fanael
-fno-align-functions maybe?
Post 30 Dec 2009, 16:06
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
f0dder wrote:
and since VC++ is available for free, why bother Smile
because like most microsoft stuff it bloats your system Laughing (no, really!)

_________________
Previously known as The_Grey_Beast
Post 30 Dec 2009, 17:17
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Post 17 Feb 2011, 10:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.