Programming the Falcon030 - dusting off an old document

All 680x0 related coding posts in this section please.

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
dhedberg
Atari Super Hero
Atari Super Hero
Posts: 913
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Programming the Falcon030 - dusting off an old document

Postby dhedberg » Sun Sep 02, 2018 11:07 pm

Many years ago I started writing on a document on how to write efficient code for the Falcon030. 20+ years later I found the document on my hard disk. I dusted it off and decided to publish at least parts of it. Perhaps it will be useful to somebody. The first part is about the 68030 caches and is now online at http://nb.atari.org/main.php?page=progr ... _falcon030
Daniel, New Beat - http://newbeat.atari.org. Like demos? Have a look at our new Falcon030 demo MORE.

User avatar
Maartau
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2626
Joined: Thu Dec 15, 2005 2:15 am
Location: France

Re: Programming the Falcon030 - dusting off an old document

Postby Maartau » Mon Sep 03, 2018 12:02 am

:cheers:

All docs are always welcome 8) .

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2437
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: Programming the Falcon030 - dusting off an old document

Postby charles » Mon Sep 03, 2018 1:50 am

superior, commence instruction !

: )

just need a falcon however

I will read whilst I dream
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!

User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 1571
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: Programming the Falcon030 - dusting off an old document

Postby Cyprian » Mon Sep 03, 2018 11:41 am

nice article
Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.appspot.com/

User avatar
whiskey
Atariator
Atariator
Posts: 18
Joined: Sun Mar 04, 2018 11:36 pm

Re: Programming the Falcon030 - dusting off an old document

Postby whiskey » Fri Nov 09, 2018 9:43 pm

will this be continued? Pretty please!

User avatar
Greenious
Hardware Guru
Hardware Guru
Posts: 1369
Joined: Sat Apr 24, 2004 5:39 pm
Location: Sweden

Re: Programming the Falcon030 - dusting off an old document

Postby Greenious » Sat Nov 10, 2018 12:25 pm

Good work!

Look forward to you releasing the embarrasing parts... lol
Updated my guides as of june 28th, 2016. Check'em out and feedback!
viewtopic.php?t=5040

User avatar
dhedberg
Atari Super Hero
Atari Super Hero
Posts: 913
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: Programming the Falcon030 - dusting off an old document

Postby dhedberg » Sat Nov 10, 2018 12:50 pm

Greenious wrote:Good work!

Thanks Tommy!

Greenious wrote:Look forward to you releasing the embarrasing parts... lol

Haha! I see you've figured out why I need to re-write! :-)
It's my intention to publish the remaining parts as well, but life's just too busy at the moment so it'll take a while I'm afraid.
Daniel, New Beat - http://newbeat.atari.org. Like demos? Have a look at our new Falcon030 demo MORE.

mikro
Hardware Guru
Hardware Guru
Posts: 1853
Joined: Sat Sep 10, 2005 11:11 am
Location: Kosice, Slovakia
Contact:

Re: Programming the Falcon030 - dusting off an old document

Postby mikro » Thu Feb 14, 2019 8:36 am

Speaking of dusting off... this is a starred link in my gmail inbox from 2010: http://preserve.mactech.com/articles/ma ... index.html ... very similar topic, can be useful to someone?

For me, the most interesting part was this:
The goal when writing small loops is to have everything contained within 242 bytes. You can’t assume all 256 bytes of the instruction cache unless your routine begins at an address divisible by 16;

User avatar
dhedberg
Atari Super Hero
Atari Super Hero
Posts: 913
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: Programming the Falcon030 - dusting off an old document

Postby dhedberg » Thu Feb 14, 2019 12:05 pm

Nice article! What they say is true due to the cache lines being 4 long words each with a shared tag value.

In order to keep my article fairly simple I decided to focus on *how* you can take advantage of the caches, rather than the full details of how they are implemented and how they work. I figured that an easier read would make more people interested in the topic and once they get into it, the ultimate source of information is the MC68030 Enhanced 32-Bit Microprocessor User's Manual. It covers everything worth knowing about the caches.

From the beginning I had included a lot more technical details, such as the effect of (mis)-alignments of code and data, but in the end I decided to take it out as I was afraid the main points of the article would be lost. Alignment is a full topic by itself. Also, it's a lot of work to ensure code is aligned on anything but a word boundary (that's what TOS does for you) as you'll have to relocate the code manually yourself. Data is easier to move around, but it still has to be done manually.
Daniel, New Beat - http://newbeat.atari.org. Like demos? Have a look at our new Falcon030 demo MORE.


Social Media

     

Return to “680x0”

Who is online

Users browsing this forum: No registered users and 1 guest