Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
111 user(s) are online (78 user(s) are browsing Forums)

Members: 0
Guests: 111

more...

Headlines

 
  Register To Post  

(1) 2 »
Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
Hi All,

I've founded my old copy of DEVPAC ( I did have a copy of the floppy disc on an old burned backup CDROM :p
I installed it on my Amiga OS 4.1 SAM and what a pleasant surprise : it work perfectly :)
I can do all the stuff it was intended to...

But DEVPAC is 680x0 and 6888x only ...
Is there a way to change this ? use another linker than monam/genam to make DEVPAC able to compile PPC source code ?

If someone have any clue or informations on this subject, feel free to answer here.

Thank you.

Kindest Regards,
Fr?d?ric

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Just popping in
Just popping in


See User information
@freddix

Quote:

But DEVPAC is 680x0 and 6888x only ...
Is there a way to change this ? use another linker than monam/genam to make DEVPAC able to compile PPC source code ?


No. It's not possible to change that.

If you want to program in PPC assembler, you can use 'as' that comes with the SDK.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@tfrieden
Ok.
Thank you for this informations.

Theorically, is I compile using Devpac using OS Friendly way of coding, the app should work on Amiga OS 4.x . Right ?

Regards,
Fred

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Just popping in
Just popping in


See User information
@freddix

Can you single step thru your code in devpac debugger under OS4?

Can you set breakpoints and they work?

I was told those things did not work under Petunia.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information

A1200+Mediator+VooDoo3+060/50+96mo+IIYAMA 17"+CD,CDRW,ZIP SCSI-KIT
SAM440EP on Mapower 3000+AOS4.1

Amiga Docs Disk Preservation Project
Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Not too shy to talk
Not too shy to talk


See User information
My choice would go to vasm, the assembler of vbcc.

Else, with a 68k assembler like DevPac you will of course compile 68k code. That could be usable on OS4 through emulation.

PPC asm is so great, I would recommend you to learn it instead of 68k. If you absolutely want to use asm.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@corto:
You're right for sure :p
I want to learn PPC ASM :p
Do you think that 68k ASM knowledge is a + on learning PPC one ?

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Not too shy to talk
Not too shy to talk


See User information
@freddix

Maybe for some basic concepts but PPC :
- has no idea about address or data registers, it has general purpose registers (GPR)
- works with load/store in mind, you can only compute data that is in a register
- there is no register PC, you cannot do "addi pc, pc, 16", you only get the PC (in special register SRR0) when you cause an excpetion
- ....

Take a look at this link for example, it has some comparisons with 68k. There are many documents on Internet about PPC programming.

The PPC instruction set is rather clean and very powerful (bits, branches, cache, condition register(s), ...). It is maybe hard to understand mnemonics at the beginning but their name is very logical at the end.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@corto : Thank you Corto for this really interesting link.
It provides me many informations on how the PowerPC CPU has to be used :)
There are few informations on which I'm not sure to understand the correct translation (in French) but in general, it's ok.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@freddix

the only problem is that iirc ASM is not officially supported anymore as a system programming language under OS 4.x IIRC it was already the case since 3.9...

Back to a quiet home... At last
Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Not too shy to talk
Not too shy to talk


See User information
@freddix

PPC680x0 by Coyote Flux could be usefull for converting existing 68k source code to PPC source and as a learning aid.

Not being a coder I couldn't say how usefull it is under OS4, but I can at least confirm that it works.

download.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@Rob
Wow ! It seem to be an excellent software :p
It may allow me to convert my actual AmigaGS 680x0 source code to PPC one ... with this ... my project can start from 1 instead of 0 :p
Thank you for this link.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Not too shy to talk
Not too shy to talk


See User information
@Rob : Their website seems to be updated but I don't think the asm converter is. I don't know if it really works.

@freddix : Do you talk about Ghostscript ? Do you know it exists on OS4 ?

@abalaban : I don't understand how asm could not be supported .... I've never heard that.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@corto : No, AmigaGS is a proto of a project I started times ago and and early alpha is available in Aminet.
It was a set of .library and MACROS to use with DEVPAC to make Game creation easier ...

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@corto

just look at your SDK you will only see C headers no ASM includes... How would you call system functions without correct structures definitions and function jump table ?

Back to a quiet home... At last
Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@abalaban: There are tool over the net that'll convert .fd files into ASM includes...

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Just popping in
Just popping in


See User information
@freddix

I didn't think the .sfd files generated by the XML parser on OS 4.x would work with those programs. I think they only generate PPC code for MorphOS.

-edit-
I'm assuming you're talking about FD2PRAGMA, am I correct?

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Quite a regular
Quite a regular


See User information
@Samurai_Crow : Yes something like this :)
Generated files are CPU non dependant.
It only provides pointers in order (like -30, -36, -42, -48) if the .library are under the same structure, it should be possible to use old FD2PRAGMA softs to generate indirect pointers like for old libraries ...

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Just popping in
Just popping in


See User information
@freddix

The .library structure has changed in OS 4 from the days of OS 3. If you use the offsets from FD2PRAGMA, you'll need to be programming in 68k compatibility mode. The offsets for the PPC codes are in another data structure called an "interface" that is obtained by the call to "ObtainInterface" in the library you're using.

Go to top
Re: Devpac 3.x, AmigaOS 4.x and PowerPC
Not too shy to talk
Not too shy to talk


See User information
@abalaban : ok, I understand

@Samurai_Crow : How could we get the offsets for OS4 ? In a disassembled code, I would like to find which function match with a particular offset. How can I do that ?

Go to top

  Register To Post
(1) 2 »

 




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




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project