English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 25 February 2017, 13:46   #1
bloodline
Registered User
 
bloodline's Avatar
 
Join Date: Jan 2017
Location: London, UK
Posts: 433
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  
Old 25 February 2017, 14:12   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
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, 15:35   #3
bloodline
Registered User
 
bloodline's Avatar
 
Join Date: Jan 2017
Location: London, UK
Posts: 433
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  
 


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 13:11
Wanted: P96 emulation.lib, rtg.lib autodocs, FD/LVO files PeterK Coders. System 6 01 January 2015 19:59
debugging session with exec lib pixel Coders. Asm / Hardware 4 20 May 2014 23:49
graphics.library private LVO's AmiCoder Coders. General 12 30 December 2009 04:24
exec.library problem with VisualPrefs oldpx support.Apps 4 29 August 2002 00: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 02:49.

Top

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