This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC porting problem


Hi all,

I'm beginner in porting GCC. Please help me with the following problem.
Simple c-file

~~~~~~~~~~~~~~~~~~~~~~~~~~
// file: sample.c
void sample_fncn(int* x, char* y)
{
 *x = *(int*)y;
}

~~~~~~~~~~~~~~~~~~~~~~~~~~

generated the following rtl-description:



~~~~~~~~~~~~~~~~~~~~~~~~~~
;; Function sample_fncn

(note 2 0 3 NOTE_INSN_DELETED)

(insn 3 2 4 (set (reg:SI 18)
        (reg:SI 14 virtual-stack-vars)) -1 (nil)
    (nil))

(insn 4 3 5 (set (reg:SI 19)
        (plus:SI (reg:SI 14 virtual-stack-vars)
            (const_int -4 [0xfffffffc]))) -1 (nil)
    (nil))

(insn 5 4 6 (set (mem/f:SI (reg:SI 19) 0)
        (reg:SI 0 r0)) -1 (nil)
    (nil))

(insn 6 5 7 (set (reg:SI 20)
        (reg:SI 14 virtual-stack-vars)) -1 (nil)
    (nil))

(insn 7 6 8 (set (reg:SI 21)
        (plus:SI (reg:SI 14 virtual-stack-vars)
            (const_int -8 [0xfffffff8]))) -1 (nil)
    (nil))

(insn 8 7 9 (set (mem/f:SI (reg:SI 21) 0)
        (reg:SI 1 r2)) -1 (nil)
    (nil))

(note 9 8 14 NOTE_INSN_FUNCTION_BEG)

(insn 14 9 15 (set (reg:SI 23)
        (reg:SI 14 virtual-stack-vars)) -1 (nil)
    (nil))

(insn 15 14 16 (set (reg:SI 24)
        (plus:SI (reg:SI 14 virtual-stack-vars)
            (const_int -4 [0xfffffffc]))) -1 (nil)
    (nil))

(insn 16 15 17 (set (reg:SI 22)
        (mem/f:SI (reg:SI 24) 0)) -1 (nil)
    (nil))

(insn 17 16 18 (set (reg:SI 26)
        (reg:SI 14 virtual-stack-vars)) -1 (nil)
    (nil))

(insn 18 17 19 (set (reg:SI 27)
        (plus:SI (reg:SI 14 virtual-stack-vars)
            (const_int -8 [0xfffffff8]))) -1 (nil)
    (nil))

(insn 19 18 20 (set (reg:SI 25)
        (mem/f:SI (reg:SI 27) 0)) -1 (nil)
    (nil))

(insn 20 19 22 (set (mem:SI (reg:SI 22) 0)
        (mem:SI (reg:SI 25) 0)) -1 (nil)
    (nil))

(note 22 20 24 NOTE_INSN_FUNCTION_END)

(code_label 24 22 0 2 "" "" [0 uses])

~~~~~~~~~~~~~~~~~~~~~~~~~~

What can be a cause of such the long RTL?

Thank you.
Osman.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]