PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

compiler implementation chart?

I'm worried...

Now I have the hardware to develop a bit of pocketpc stuff at home. (I have the idea to write a *good* rasterizer.. just because I know how to do it and I've learned so much new stuff in the last 3 years...).


I only did the Schumacher game at work, and I hadn't really had the time to dig into different processors.

All I did was to port the game code (easy) and let someone else do the rasterizer (who did a lousy job all in all, but the rasterizer are still faster than most I've seen.).. long story short: I'm in the mood to kick ass.


I read up a bit about xscale and such, and now I know less than I knew before. Could someone please summarize what kind of instructions are available on processors upwards from the stongarm? I know that the xscale *does* have new instructions, but the manual also mentions mmx like things which just look to good to true if they're available.


Thanks,

Nils
torus wrote:I'm worried...
I read up a bit about xscale and such, and now I know less than I knew before. Could someone please summarize what kind of instructions are available on processors upwards from the stongarm? I know that the xscale *does* have new instructions, but the manual also mentions mmx like things which just look to good to true if they're available.

Nils, for rasterizers probably the most important instructions are the preloading instructions as well as CLZ (count leading zeros; XScale and up) for fixed point divisions.

WMMX is PXA27x and up. the Intel book "Programming with Intel Wireless MMX Technology" discusses how to use that for color modulation, shading, blending, tri-linear interpolation. If you don't have it yet you should seriously consider getting yourself a copy of this book.

If you really want to "kick-ass", would you be interested in helping out on the rasterizer in Vincent? There are already some other folks interested in optimizing the geometry part...

- HM
well, first off I'll try on my own :)


I did so many sofware rasterizers before, it's a shame that I haven't had the chance to do work on the xscale.
First off I have to learn how the assembler of eVC 4.0 works though. I only remember that it was a bit whacky to get the damn thing working. (or are there any other assemblers I should know about? What's state of the art right now?)


It's good news that the wmmx instructions are available. I was never sure about them. You know, the manual also decribess the embedded dsp stuff (which I didn't expect to have any support).

Btw, I have a Samsung S3C2410 CPU here. Does anyone has an idea if that thing is a XScale or Strongarm variant?

YOW!
Nils
torus wrote:I did so many sofware rasterizers before, it's a shame that I haven't had the chance to do work on the xscale.

When you have a good one (i.e. significantly better than PocketGL or what's in LaMotte's book; i.e. proper pixel and texel stepping, correct rounding and number range conversion, as well as no overflow/underflow), please let me know... :-)

torus wrote:First off I have to learn how the assembler of eVC 4.0 works though. I only remember that it was a bit whacky to get the damn thing working. (or are there any other assemblers I should know about? What's state of the art right now?)

Intel's tools are usually a good choice. The current version, however, suffers from a collection of serious bugs. There'e supposed to be a patch coming out in the next couple of days, though.

torus wrote:Btw, I have a Samsung S3C2410 CPU here. Does anyone has an idea if that thing is a XScale or Strongarm variant?

According to google, it's an ARM920T core, thus implementing ARMv4T. Copy/paste from ARM web site describes it as:

"ARMv4 - The oldest version of the architecture supported today. [...] The ARMv4T architecture added the 16-bit Thumb instruction set [...]"

So I wouldn't expect too much...

- HM
So I wouldn't expect too much...
Personally I rather like the ARM9. OK, so it didn't go out of its way to add all sorts of extra instructions, but it does mean that well-optimised StrongARM code will run nicely on it.

Basically, the situation is as hm said:

StrongARM: the default ARMv4 instruction set - five stage pipeline

ARM9: treat as a StrongARM (forget Thumb)- no extras are there, so far as I can tell

Early XScale: ARMv5 - has CLZ, PLD, and slightly weirder instruction cycle count rules for it than StrongARM - seven stage pipeline

Later XScale: ARMv5+ Intel WMMX - same as above except it has ~40 extra WMMX instructions to do some SIMD stuff (some of which do look quite nice)
refractor wrote:
So I wouldn't expect too much...
Personally I rather like the ARM9. OK, so it didn't go out of its way to add all sorts of extra instructions, but it does mean that well-optimised StrongARM code will run nicely on it.

Sure, I just meant in regard to expectations towards a fancy extended multi-media optimized instruction set (as you summarized, there are neither DSP instructions, which basic XScale has and which could be used for blending and modulations, as well as no WMMX).

- HM