- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an idea - you are sure it dies before the first executable statement, yes? You have put a print statement at the start of the program?
I would guess that your static data exceeds the physical memory of your system. How much RAM does your Mac have? And how large are your arrays in COMMON (or just declared in the main program)?
You cannot exceed the size of physical memory + page space in your program's data. Try the size command 'size' on your executable to get an idea of how much memory you need:
size a.out
__TEXT __DATA __OBJC others dec hex
610304 90112 0 4294991872 4295692288 1000b1000
this works for static data but NOT for dynamic data.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an idea - you are sure it dies before the first executable statement, yes? You have put a print statement at the start of the program?
I would guess that your static data exceeds the physical memory of your system. How much RAM does your Mac have? And how large are your arrays in COMMON (or just declared in the main program)?
You cannot exceed the size of physical memory + page space in your program's data. Try the size command 'size' on your executable to get an idea of how much memory you need:
size a.out
__TEXT __DATA __OBJC others dec hex
610304 90112 0 4294991872 4295692288 1000b1000
this works for static data but NOT for dynamic data.
ron
Section Size Physical Virtual
Address Address
.interp 21 268435732 268435732
.MIPS.options 128 268435760 268435760
.reginfo 24 268435888 268435888
.dynamic 288 268435912 268435912
.liblist 60 268436200 268436200
.dynstr 3579 268436260 268436260
.hash 3828 268439840 268439840
.dynsym 7088 268443668 268443668
.MIPS.symlib 443 268450756 268450756
.msym 3544 268451200 268451200
.conflict 4 268454744 268454744
.MIPS.stubs 1008 268454748 268454748
.text 1294408 268455760 268455760
.init 24 269750176 269750176
.rodata 116071 269828096 269828096
.data 31280 269944168 269944168
.got 1692 269975448 269975448
.sbss 16224 269977144 269977144
.lit4 8564 269993368 269993368
.srdata 1495 270001936 270001936
.sdata 132 270003432 270003432
.lit8 40 270003568 270003568
.bss 222500 270003616 270003616
1315942 + 174003 + 222500 = 1712445

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page