English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 25 February 2017, 14:46   #1
bloodline
Registered User

 
Join Date: Jan 2017
Location: London
Posts: 28
LVO tables in exec libraries

Does anyone know why the lvo tables are constructed as a list of JMP <address> instructions rather than just a simple list of pointers?

That would have saved 2bytes per entry, is there any advantage to the JMP approach?
bloodline is offline  
AdSense AdSense  
Old 25 February 2017, 15:12   #2
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,025
The advantage is that the function call becomes shorter, a single instruction on 68000 and 68010. If you had just stored an array of pointers you would've needed one more instruction of 2 bytes and one temporary address register per call on 68000 on 68010.

I don't know how many library and device functions are active on a typical Workbench installation, a thousand maybe, so the savings would've been just a couple of kilobytes, minus the above cost for all the software.
Leffmann is offline  
Old 25 February 2017, 16:35   #3
bloodline
Registered User

 
Join Date: Jan 2017
Location: London
Posts: 28
Quote:
Originally Posted by Leffmann View Post
The advantage is that the function call becomes shorter, a single instruction on 68000 and 68010. If you had just stored an array of pointers you would've needed one more instruction of 2 bytes and one temporary address register per call on 68000 on 68010.

I don't know how many library and device functions are active on a typical Workbench installation, a thousand maybe, so the savings would've been just a couple of kilobytes, minus the above cost for all the software.
Good call. Many thanks
bloodline is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CDTV exec.library Arnie support.WinUAE 19 18 February 2016 14:11
Wanted: P96 emulation.lib, rtg.lib autodocs, FD/LVO files PeterK Coders. System 6 01 January 2015 20:59
debugging session with exec lib pixel Coders. Asm / Hardware 4 21 May 2014 00:49
graphics.library private LVO's AmiCoder Coders. General 12 30 December 2009 05:24
exec.library problem with VisualPrefs oldpx support.Apps 4 29 August 2002 01:18

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


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.10677 seconds with 12 queries