Search found 65 matches
- Sat Jan 21, 2012 4:02 pm
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
gcc doesn't know how to parse the asm to figure out whether the code is reading and/or writing any given variable: Output operand expressions must be lvalues; the compiler can check this. The input operands need not be lvalues. The compiler cannot check whether the operands have data types that are...
- Sat Jan 21, 2012 3:16 pm
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
Ah, seems to make sense.
So really, even though it's not in that register, any inlined code can treat it as if it really is?
But then, why does the inline constraints have to directly specify the input operands?
So really, even though it's not in that register, any inlined code can treat it as if it really is?
But then, why does the inline constraints have to directly specify the input operands?
- Sat Jan 21, 2012 2:27 pm
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
Sorry for reviving such an old thread, I just really didn't want to make another considering it's a question related to the adventure started in this thread :lol: I know the KOS has this stuff implemented already, I think it's in "kernel/arch/ dreamcast/include/ dc/math.h"? Either way, for...
- Thu Jan 05, 2012 7:59 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
I've finally gotten the KOS to compile, well it was a few days ago but I've had internet problems. Anywhoo, Everything has compiled fine, the kos-ports and even dcload has compiled and is working just fine. However, I think something has gone wrong behind the scenes. For example, if I compile the pv...
- Wed Jan 04, 2012 4:22 pm
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
Okay, after looking further into the links provided (thanks again!), The Sh4 CPU does indeed have opcodes/registers for optimizing vector calcualtions. Which is awesome, but before I start screwing around with this, I've got a few questions about the KOS's PVR API. Sorry if any of these are obvious/...
- Mon Jan 02, 2012 11:37 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Yeah, I changed all the paths and they appear to be correct. Here's the environ.sh file: # KallistiOS environment variable settings # # This is a sample script. Configure to suit your setup. Some possible # alternatives for the values below are included as an example. # # This script should be execu...
- Mon Jan 02, 2012 5:47 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Well it seems I'm very nearly there with this :grin: I managed to source the environ script just fine, and I nearly got and example to compile.. (Nearly). nico@ubuntu:~/cadcdev/kos/examples/dreamcast/pvr/texture_render$ make rm -f texture_render.elf rm -f texture_render.bin kos-cc -c ta.c -o ta.o ta...
- Sun Jan 01, 2012 10:25 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
I just followed the instructions from the 'cadcdev/kos/doc/README' file under the 'BUILDING' section. Edit the sample file to reflect the desired platform. It was DC for me, but maybe N64 for you? At that point open a terminal, or console window, and run 'source environ.sh', where the environ.sh fi...
- Sun Jan 01, 2012 9:47 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
So all I need to do is run the script?Stryfe wrote:I personally compiled this on a x86_64 system. I'm pretty sure all sourcing the environ.sh file does is set certain environmental variables by calling the export command.
- Sun Jan 01, 2012 8:41 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Okay it ended with this: make[5]: Entering directory `/home/nico/cadcdev/kos/utils/dc-chain/build-gcc-arm-elf-4.5.2/arm-elf/thumb/libgcc' /bin/bash ../../../../gcc-4.5.2/libgcc/../mkinstalldirs /opt/toolchains/dc/arm-elf/lib/gcc/arm-elf/4.5.2/thumb mkdir -p -- /opt/toolchains/dc/arm-elf/lib/gcc/arm-...
- Sat Dec 31, 2011 5:56 pm
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Aha! That shows the issue quite well, actually. The problem is that it didn't build sh-elf-gcc properly, because you were missing a dependency for GCC. Install GMP 4.2 or later, MPFR 2.3.1 or later, and MPC 0.8.0 or later from your system's package manager. Make sure to get the -devel packages too,...
- Sat Dec 31, 2011 1:17 pm
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
First of all, thanks for all the help. I really appreciate your help BlueCrab. I've tried the new file, and various other things (generally fiddling with the makefile etc). But I still can't get past this error. Everything seems up to date (svn and whatnot). I've flushed the output to a file. EDIT: ...
- Sat Dec 31, 2011 11:33 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Okay this is getting pretty frustrating now. Every time I attempt this, it always uses binutils 2.21 instead of 2.22 (if that's worth noting seeing as it seems to be only me with this particular issue) And I'm still stuck at this error: +++ Fixing up sh4 newlib includes... cp /home/nico/cadcdev/kos/...
- Fri Dec 30, 2011 3:33 pm
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
That worked great, thanks again! EDIT: I got past the last problem, but now another compile issue: cp: accessing `/home/nico/toolchains/dc/sh-elf/sh-elf/include/sys': Not a directory /home/nico/toolchains/ was a path I changed in the makefile, so it's installing to that correctly. It generated the s...
- Fri Dec 30, 2011 2:15 pm
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
Sorry to be a bother again. the download.sh script outputs this: nico@ubuntu:~/cadcdev/kos/utils/dc-chain$ sh download.sh --2011-12-30 20:13:33-- ftp://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2 => `binutils-2.21.tar.bz2' Resolving ftp.gnu.org... 140.186.70.20 Connecting to ftp.gnu.org|140.186.7...
- Fri Dec 30, 2011 12:18 pm
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
Re: KOS In Unix systems
That page is extremely old and doesn't reflect the current state of things at all, unfortunately. Now that you pointed out that its still there like that, I'll go and get rid of it before anyone else gets confused. :wink: Haha, I had a feeling it was out of date but to what extent I didn't/don't kn...
- Fri Dec 30, 2011 10:18 am
- Forum: Programming Discussion
- Topic: KOS In Unix systems
- Replies: 43
- Views: 6304
KOS In Unix systems
I have come to burden you all with more problems, sorry lol. I'm trying to get a development environment in Linux working, and still being a noob at all this toolchain/gcc/makefile/repository crap that gets hidden away from me in Windows it's quite frustrating. I'm following instructions from here: ...
- Sat Dec 24, 2011 12:04 pm
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
Well awesome!
You've all been a *huge* help. I'll see what I can come up with!
You've all been a *huge* help. I'll see what I can come up with!
- Sat Dec 24, 2011 11:14 am
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
I'm still stuck on an Assembler though, Hitachi's site seems long gone. I'm guessing you'd have to write your own -gulp- :( So if anyone has any info on that, much appreciated again! :grin: EDIT: I just had a thought, the KOS development kit comes with GCC ready to compile straight out the box. Does...
- Sat Dec 24, 2011 10:08 am
- Forum: Programming Discussion
- Topic: Tinkering with Dreamcast's Sh4's architecture
- Replies: 21
- Views: 4638
Re: Tinkering with Dreamcast's Sh4's architecture
Marcus Site. http://mc.pp.se/dc/cpu.html Look at this page you found there everything that you need (programming and hardware manual covers almost everything. after reading it you can even develop your own board on which you can set sh4 processor). Thanks much! That one link is like an encyclopedia...