Subject:
|
Can now use gcc 2.95.2 for legOS
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Tue, 18 Jul 2000 09:21:43 GMT
|
Viewed:
|
1934 times
|
| |
| |
Hi all.
Well, I finally got around to checking out the problem with compiling legos
with gcc 2.95.2. And the good news is, it's not a bug with gcc!!
The problem is the in-line assembly in memcpy.c (also in memset.c). If you
apply the patch at http://members.xoom.com/RoscoHead/legos/memfunc.diff, you
should be able to compile with gcc 2.95.2.
Note that I havent yet gone through all source to check the in-line asm code,
so there could be other problems. But I guess youll find 'em pretty fast 8?)
If you're not familiar with diffs & patches, just look in memcpy.c & memset.c
for the line that looks like:
: "=r" (dummy)
and change "=r" to "=&r".
I'm not a h8 guru, but I've been told that this lets gcc know that operand 0 is
"earlyclobbered". Without this, the result of compilation is undefined, hence
the different results with egcs.
You'll have to re-make legOS.srec, which means you'll also have to re-build
your user programs. 8?(
Regards,
ROSCO
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|