This one seems working for mips32r2


I have successfully cross-compiled chicken and compiled a cross-chicken for the mips plaform using instructions defined here <http://wiki.call-cc.org/man/4/Cross%20development>.Thank you for the hint.

There is no apply-hack for this plaform, though. What does this mean? What are the consequences?

Razvan


On 21 October 2013 01:14, Mario Domenech Goulart <[email protected] <mailto:[email protected]>> wrote:

    On Sun, 20 Oct 2013 18:52:47 +0300 Ra(zvan Rotaru
    <[email protected] <mailto:[email protected]>> wrote:

    > Is there a possibility to cross compile with chicken for another
    > platform? If yes, how? My scenario is following:
    >
    > I have a chicken app developed on a x86 system, and would like to
    > compile it for another platform, say MIPS. Now, I don't have chicken
    > on MIPS and I also don't want to port it. I would like to take
    > advantage of the chicken compiler generating c code, and simply tell
    > chicken to tell gcc to cross compile for MIPS. Any ideas if and
    how I
    > can do that?

    There is a CHICKEN layer for Yocto/OpenEmbedded which provides the
    CHICKEN tools and a couple of eggs:
    https://github.com/OSSystems/meta-chicken

    Best wishes.
    Mario
    --
    http://parenteses.org/mario




_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

/* file apply-hack.mips32.S */

.text
.align 2
.abicalls
.option pic0
.globl _C_do_apply_hack
.ent _C_do_apply_hack

_C_do_apply_hack:
/*MAGIC: mips-o32 abi prologue */
        .set nomips16
        .frame $sp,32,$31
        .mask 0x80000000,-4
        .fmask 0x00000000,0
        .set noreorder
        .cpload $25
        .set nomacro
        addiu $sp,$sp,-32
        sw $31,28($sp)
        .cprestore 16
/*MAGIC: end of magic code */

        move $25,$4 /* save proc */
        move $sp,$5 /* change stack pointer to buf */
        lw $a0,0($sp) /* $a0 = buf[0] */
        lw $a1,4($sp) /* $a1 = buf[1] */
        lw $a2,8($sp) /* $a2 = buf[2] */
        lw $a3,12($sp) /* $a3 = buf[3] */
        jalr $25
        nop

.end _C_do_apply_hack
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to