Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

mips asm

Name: Anonymous 2012-01-16 14:51

What's the difference between .data, .heap and $sp?

I know .heap is the heap
I know $sp is the stack

But what's .data? and what's the disadvantage of using .heap vs $sp vs .data?



ignore the fact that you mean something to manage the heap too, i can deal with that.

Name: Anonymous 2012-01-16 15:02

>>1
.data is the static data section

Name: Anonymous 2012-01-16 15:13

.data is basically where global definitions go

Name: Anonymous 2012-01-16 19:39

.data is where data goes

Name: nips ass 2012-01-16 19:58

nips ass

Name: Anonymous 2012-01-16 20:16

nigger

Name: Anonymous 2012-01-17 0:58

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2012-01-17 7:10

The difference is that two look like assembler directives and the third is a register.

Name: Anonymous 2012-01-17 8:54

>>8
$sp can also refer to the memory segment where the stack is located in some mips environments

Name: Anonymous 2012-01-17 11:54

$sp stack pointer

Name: Anonymous 2012-01-17 12:26

ld $sp, dubs
bl check_em

Name: Anonymous 2012-01-17 12:55

>>11

.data
consider_it_checked .asciiz "Consider it check\n"
.text
li $v0,0x0004
la $a0,consider_it_checked
syscall

Don't change these.
Name: Email:
Entire Thread Thread List