2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>

* nds32/crt0.S: Use pseudo-instruction "bal frame" to replace
        "la + jral".
        * nds32/crt1.S: Ditto.
This commit is contained in:
Jeff Johnston 2014-03-21 20:27:41 +00:00
parent d35d103f08
commit 488d885bf3
3 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/crt0.S: Use pseudo-instruction "bal frame" to replace
"la + jral".
* nds32/crt1.S: Ditto.
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/crt0.S: Eliminate initialization for $fp.

View File

@ -94,8 +94,7 @@ _start:
movi $r0, 0
movi $r1, 0
/* Call 'main'. */
la $r15, main
jral $r15
bal main
.L_terminate_program:
/* There are two ways to terminate program:
@ -106,8 +105,7 @@ _start:
Currently, we use option 2 as a solution to follow C99 5.1.2.2.3,
but aware that general exit() will do some cleanup procedures
which may result in large-memory-footprints. */
la $r15, exit
jral $r15
bal exit
.L_forever_loop:
/* Should never return here. */

View File

@ -100,8 +100,7 @@ _start:
movi $r1, 0
movi $r2, 0
/* Call 'main'. */
la $r15, main
jral $r15
bal main
.L_terminate_program:
/* There are two ways to terminate program:
@ -112,8 +111,8 @@ _start:
Currently, we use option 2 as a solution to follow C99 5.1.2.2.3,
but aware that general exit() will do some cleanup procedures
which may result in large-memory-footprints. */
la $r15, exit
jral $r15
bal exit
.L_forever_loop:
/* Should never return here. */