OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [rx/] [gcrt0.S] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#define PROFILE_SUPPORT 1
2
 
3
#include "crt0.S"
4
 
5
        .global __mcount
6
__mcount:
7
        ;; When a function is compiled for profiling, gcc creates code
8
        ;; like this at the start of each profiled function:
9
        ;;
10
        ;;      .global 
11
        ;; :
12
        ;;      bsr __mcount
13
        ;;      <...function's prologue...>
14
        ;;      <...function's body...>
15
        ;;
16
        ;; We must save all of the argument registers, extract the
17
        ;; address of , call _mcount_internal to do the
18
        ;; real work and then restore the argument registers before
19
        ;; returning.
20
 
21
        pushm   r1-r4
22
        mov.l   16[r0], r1
23
        bsr     __mcount_internal
24
        rtsd    #16, r1-r4
25
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.