VESAMTTR (recovered from Google) (DOSX)
> Yes dude, you was right. -fomit-frame-pointer made the evil, it works with
> -Os -O2 -O6 well. Could you explain what -fomit-frame-pointer does resp.
> how it can make crashes?
Try using -fomit-frame-pointer -masm=intel -S -o myfile.asm and comparing it vs. without the -fomit-frame-pointer option. Basically, GCC always creates a stack frame (which, if absent, can save some bytes but makes debugging much much harder if not impossible). Actually, I think -Os and similar are documented to always use -fomit-frame-pointer unless it interferes with debugging (which I personally thought was kinda a copout for not working like documented but whatever).
Basically, if you screw with the stack, it can mess up and crash, so don't do it. (And GCC ain't your friend if you want really small code.)
---
Know your limits.h
Complete thread:
- VESAMTTR (recovered from Google) - DOS386, 23.07.2007, 02:42 (DOSX)
- VESAMTTR (recovered from Google) - RayeR, 03.09.2007, 20:45
- VESAMTTR (recovered from Google) - RayeR, 03.09.2007, 20:58
- VESAMTTR (recovered from Google) - Rugxulo, 04.09.2007, 02:01
- VESAMTTR (recovered from Google) - RayeR, 04.09.2007, 12:59
- VESAMTTR (recovered from Google) - Japheth, 04.09.2007, 16:41
- VESAMTTR (recovered from Google) - RayeR, 04.09.2007, 20:25
- VESAMTTR (recovered from Google) - Japheth, 04.09.2007, 22:32
- VESAMTTR (recovered from Google) - DOS386, 05.09.2007, 02:17
- VESAMTTR (recovered from Google) - RayeR, 05.09.2007, 09:53
- VESAMTTR (recovered from Google) - Japheth, 06.09.2007, 08:27
- VESAMTTR (recovered from Google) - DOS386, 11.09.2007, 06:54
- VESAMTTR (recovered from Google) - RayeR, 12.09.2007, 20:31
- VESAMTTR (recovered from Google) - DOS386, 13.09.2007, 02:21
- VESAMTTR (recovered from Google) - RayeR, 12.09.2007, 20:31
- VESAMTTR (recovered from Google) - DOS386, 11.09.2007, 06:54
- VESAMTTR (recovered from Google) - Japheth, 06.09.2007, 08:27
- VESAMTTR (recovered from Google) - Japheth, 04.09.2007, 22:32
- VESAMTTR (recovered from Google) - RayeR, 04.09.2007, 20:25
- VESAMTTR (recovered from Google) - Rugxulo, 05.09.2007, 14:51
- VESAMTTR (recovered from Google) - RayeR, 05.09.2007, 16:22
- VESAMTTR (recovered from Google) - Rugxulo, 05.09.2007, 20:56
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 01:08
- VESAMTTR (recovered from Google) - Rugxulo, 06.09.2007, 04:40
- VESAMTTR (recovered from Google) - rr, 06.09.2007, 16:56
- VESAMTTR (recovered from Google) - Rugxulo, 07.09.2007, 04:12
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 22:35
- VESAMTTR (recovered from Google) - Rugxulo, 07.09.2007, 04:14
- VESAMTTR (recovered from Google) - RayeR, 07.09.2007, 10:18
- VESAMTTR (recovered from Google) - rr, 07.09.2007, 10:45
- VESAMTTR (recovered from Google) - RayeR, 08.09.2007, 01:46
- VESAMTTR (recovered from Google) - Rugxulo, 08.09.2007, 07:03
- VESAMTTR (recovered from Google) - RayeR, 08.09.2007, 22:03
- VESAMTTR (recovered from Google) - rr, 08.09.2007, 22:49
- VESAMTTR (recovered from Google) - RayeR, 10.09.2007, 14:18
- VESAMTTR (recovered from Google) - rr, 08.09.2007, 22:49
- VESAMTTR (recovered from Google) - RayeR, 08.09.2007, 22:03
- VESAMTTR (recovered from Google) - Rugxulo, 08.09.2007, 07:03
- VESAMTTR (recovered from Google) - RayeR, 08.09.2007, 01:46
- VESAMTTR (recovered from Google) - rr, 07.09.2007, 10:45
- VESAMTTR (recovered from Google) - RayeR, 07.09.2007, 10:18
- VESAMTTR (recovered from Google) - Rugxulo, 07.09.2007, 04:14
- VESAMTTR (recovered from Google) - rr, 06.09.2007, 16:56
- VESAMTTR (recovered from Google) - Japheth, 06.09.2007, 07:17
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 22:34
- VESAMTTR (recovered from Google) - rr, 06.09.2007, 16:51
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 22:33
- VESAMTTR (recovered from Google) - Rugxulo, 07.09.2007, 05:11
- VESAMTTR (recovered from Google) - rr, 07.09.2007, 10:40
- VESAMTTR (recovered from Google) - rr, 07.09.2007, 10:40
- VESAMTTR (recovered from Google) - Rugxulo, 07.09.2007, 05:11
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 22:33
- VESAMTTR (recovered from Google) - Rugxulo, 06.09.2007, 04:40
- VESAMTTR (recovered from Google) - RayeR, 06.09.2007, 01:08
- VESAMTTR (recovered from Google) - Rugxulo, 05.09.2007, 20:56
- VESAMTTR (recovered from Google) - RayeR, 05.09.2007, 16:22
- VESAMTTR (recovered from Google) - Japheth, 04.09.2007, 16:41
- VESAMTTR (recovered from Google) - RayeR, 04.09.2007, 12:59
- VESAMTTR (recovered from Google) - Rugxulo, 04.09.2007, 02:01