SPARC double형 ldd 오류!
글쓴이: msms210 / 작성시간: 토, 2018/12/01 - 9:05오후
.section ".data"
numf: .double 0r999.0
nums: .double 0r1.0
.section ".text"
fmt1: .asciz "%g"
fmt2: .asciz "input = "
fmt3: .asciz "output = %g\n"
.align 4
.global main, scanf, printf
main: save %sp, -128, %sp
set numf, %o0
set nums, %o2
ldd [%o0], %f0 ! %f0$f1 = 999.0
ldd [%o2], %f2 ! %f2%f3 = 1.0data section에 numf, nums를 각각 999.0, 1.0인 double형으로 선언하고 main함수에서 set과 ldd로
FPU에 옮기려 하는데 ldd [%o0],%f0에서 여러번 시도해도 자꾸 bus error가 발생하네요 ㅜ
해결방법 아시는분 계시면 알려주시면 감사하겠습니다!!
Forums:


댓글 달기