English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

Thread Tools
Old 21 December 2020, 03:09   #1
Registered User

peceha's Avatar
Join Date: Dec 2017
Location: Poland
Age: 45
Posts: 277
[blitz] amiga/blitz Mode speed question

Lets say my program looks like:

;files with statements

;jumping into blitz mode

;executing some statements from INCLUDE files
some statements...

The above order gives me average times for 3 parts of my program as follows:

When I move INCLUDE part down below BLITZ command (so the statements files are read in blitz mode) the miracle happens and the timings get much better:

Why does the location of inicial statements (amiga/blitz Mode) have inpact on program's speed?


Last edited by peceha; 21 December 2020 at 03:33.
peceha is offline  
Old 21 December 2020, 04:14   #2
Registered User

Join Date: Mar 2018
Location: Austria
Posts: 501
Not coding Blitz for a while, but this is what I remember.
IIRC the Blitz compiler uses the Blitz and Amiga commands "stupidly" from top to down.
For example:
  some code
  gosub subroutine1
  pgm end code

Here "subcode1" is executed in normal Amiga mode IIRC (Correct me if I'm wrong).
I'd say it's not exactly what you'd expect from the compiler normally.
Nightshft is offline  
Old 21 December 2020, 11:36   #3
Registered User

peceha's Avatar
Join Date: Dec 2017
Location: Poland
Age: 45
Posts: 277
So looks like I have to be more careful where I write and what...
peceha is offline  
Old 10 January 2021, 19:52   #4
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,067
That’s something I had never thought of; that the position of an INCLUDE statement alters the speed of the entire included file. Nice find!
idrougge 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
Interlaced display in BLITZ mode. Anakirob Coders. Blitz Basic 9 26 June 2017 00:48
[blitz basic] How much amiga-blitz friendly is this? saimon69 Coders. Blitz Basic 104 29 November 2016 21:45
Blitz: Which mode to use BippyM Coders. Blitz Basic 2 23 January 2013 19:09
BLITZ - Createdisplay in AMIGA mode Tony Landais Coders. General 7 07 May 2003 00:31
How to launch other exe in Blitz mode Tony Landais Coders. General 2 04 May 2003 00:59

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 05:05.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Page generated in 0.06461 seconds with 13 queries