English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 April 2017, 02:46   #1
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 1,425
PPC680x0 anyone used this?

Hello,
I've taken an interest in playing around with WarpOS coding and wondered if anyone had used PPC680x0 and whether it was worthwhile or not.
http://aminet.net/package/dev/asm/PPC680x0V1.10
I assume since it has three exclamation points in the Aminet description that it is very awesome but just wondering what the word on the street or back alley is.

And if anyone wonders my class level for asm coding is 0 (NPC commoner).

Thanks.
grelbfarlk is offline  
Old 22 April 2017, 11:40   #2
Zetr0
Ya' like it Retr0?
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 43
Posts: 9,768
@grelbfarlk

That is quite a fascinating find, I will say that ASM is quite a low level programming language (next to binary it is the lowest level) as such it might not lend itself to a new comer to programming.

This particular product converts 68k ASM opticodes into PPC opticodes - since the PPC is a lot faster than the 68k there will be some noticable speed / performance improvements.

I would look as an WinUAE build of either "Storm C" or "SAS C" - from here, unless you already know C / C++ you can then learn programming with the support of C coding on the interwebs! There is also a lot support including the RKRM (Rom Kernal Reference Manuals) that have all the information to allow you to exploit and hit the hardware.

From this you can look at compiling your code to (asm) and then see not only how that differs but also how you can improve things like loops and lookup tables while learning ASM at the same time.

Once you have the hang of this in a direct environment (WinUAE) then you can look at a PPC compiler, I think there is a few cross-compilers so you can write on the PC and then test it all out under WinUAE =)

I hope that helps.
Zetr0 is offline  
Old 22 April 2017, 12:32   #3
Cowcat
Registered User
 
Join Date: Apr 2013
Location: Mallorca
Posts: 472
@grelbfarlk
I would suggest going the C route at first, looking at asm ppc output from small programs or functions. I think ppc680x0 went a "verbatim" route as the 68k disassembly goes, so no special backend is used to optimize the code as vbcc or whatever compiler does or did.

For warpos, the most important aspect is the use of #pragma amiga-align (vbcc way) when system includes are called in sources. This is a must. Quite a few examples are in BlitzQuake or Phx Quake using asm functions integrated. Or how I tweaked the Quake2 gcc sources to be vbcc happy.

The special subject for max performance in warpos are the use of mixed 68k/ppc code in the same program to reduce context switch beetwen cpu's: For example the mouse/keyboard functions for the input handler in BlitzQuake.

There's a good amount of work needed for upgrade old sources to be 2017/vbcc compliant as things changed over the years (makefile knightmares one of those), but well, some famous programs are slowly upgraded but never released on public....

And I really like ppc asm
Cowcat is offline  
Old 22 April 2017, 22:30   #4
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 924
Quote:
Originally Posted by grelbfarlk View Post
Hello,
I've taken an interest in playing around with WarpOS coding and wondered if anyone had used PPC680x0 and whether it was worthwhile or not.
http://aminet.net/package/dev/asm/PPC680x0V1.10
I assume since it has three exclamation points in the Aminet description that it is very awesome but just wondering what the word on the street or back alley is.

And if anyone wonders my class level for asm coding is 0 (NPC commoner).

Thanks.
Coyote Flux site is still up.
http://www.coyoteflux.nl/ppc680x0.htm
Kamelito
kamelito is offline  
Old 24 April 2017, 18:13   #5
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 822
The output of that program is difficult to read. At least last time I tried it more than 2 years ago. I tried to convert the AllocMem function from the KS1.2 exec source which is floating about. I ended up with getting a good second hand book from Amazon which I learned it from.

The downside is that it affects your 68k coding with moving stuff from memory first to a register instead of direct memory to memory which the PPC can't do.

I can give you the name of the book if you want. Even explains pipes and stages.
Hedeon is offline  
Old 25 April 2017, 12:30   #6
voxel
Amiga Nuts!
voxel's Avatar
 
Join Date: Sep 2006
Location: Le Mayet d'Ecole, 03800, FRANCE
Posts: 165
a link to that book will help too ^^)
voxel is offline  
Old 25 April 2017, 18:11   #7
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 822
Optimizing Powerpc Code: Programming the Powerpc Chip in Assembly Language

by

Gary Kacmarcik

Got it for 30 dollars.
Hedeon is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cyote Flux releases PPC680x0 as Freeware Paul News 0 29 December 2004 20:48
Coyote Flux: PPC680x0 to become freeware! Paul News 1 30 November 2004 21:20

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06821 seconds with 15 queries