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

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk
    from Rev 251 to Rev 252
    Reverse comparison

Rev 251 → Rev 252

/lcc/cpp/tokens.c
267,7 → 267,7
if (str)
fprintf(stderr, "%s ", str);
if (tp<trp->bp || tp>trp->lp)
fprintf(stderr, "(tp offset %d) ", tp-trp->bp);
fprintf(stderr, "(tp offset %ld) ", tp-trp->bp);
for (tp=trp->bp; tp<trp->lp && tp<trp->bp+32; tp++) {
if (tp->type!=NL) {
int c = tp->t[tp->len];
/lcc/src/x86.md
915,7 → 915,7
else if (suffix == U && size == 4)
print("dd 0%xH\n", (unsigned)v.u);
else if (suffix == P && size == 4)
print("dd 0%xH\n", (unsigned)v.p);
print("dd 0%lxH\n", (unsigned long)v.p);
else if (suffix == F && size == 4) {
float f = v.d;
print("dd 0%xH\n", *(unsigned *)&f);
/lcc/src/sparc.md
897,7 → 897,7
unsigned *p = (unsigned *)&d;
print(".word 0x%x\n.word 0x%x\n", p[swap], p[!swap]);
} else if (suffix == P)
print(".word 0x%x\n", (unsigned)v.p);
print(".word 0x%lx\n", (unsigned long)v.p);
else if (size == 1)
print(".byte 0x%x\n", (unsigned)((unsigned char)(suffix == I ? v.i : v.u)));
else if (size == 2)
/lcc/src/mips.md
858,7 → 858,7
print(".word 0x%x\n.word 0x%x\n", p[swap], p[!swap]);
}
else if (suffix == P)
print(".word 0x%x\n", (unsigned)v.p);
print(".word 0x%lx\n", (unsigned long)v.p);
else if (size == 1)
print(".byte 0x%x\n", (unsigned)((unsigned char)(suffix == I ? v.i : v.u)));
else if (size == 2)
/lcc/src/x86linux.md
968,7 → 968,7
else if (suffix == U && size == 4)
print(".long %d\n", (int)v.u);
else if (suffix == P && size == 4)
print(".long %d\n", (int)v.p);
print(".long %ld\n", (long)v.p);
else if (suffix == F && size == 4) {
float f = v.d;
print(".long %d\n", (int)(*(unsigned *)&f));
/lcc/src/eco32.md
469,7 → 469,7
print("\t.word\t0x%x\n", p[1 - swap]);
} else
if (suffix == P) {
print("\t.word\t0x%x\n", (unsigned) v.p);
print("\t.word\t0x%lx\n", (unsigned long) v.p);
} else
if (size == 1) {
print("\t.byte\t0x%x\n",
/lcc/makefile
1,8 → 1,9
A=.a
O=.o
E=
CC=gcc -m32
CFLAGS=-g
CC=gcc
# -Wno-psabi suppresses notes about changed ABI conventions
CFLAGS=-g -Wno-psabi
LDFLAGS=-g
LD=$(CC)
AR=ar ruv

powered by: WebSVN 2.1.0

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