Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #1206

Re: S16, OMF and Segments

Newsgroups comp.sys.apple2.programmer
Date 2014-04-07 06:37 -0700
References <25ce127b-ac26-4a8f-80ed-7cddbec7435d@googlegroups.com>
Message-ID <defbd832-893c-40ba-9ce2-e22faee25a43@googlegroups.com> (permalink)
Subject Re: S16, OMF and Segments
From ozkfest@gmail.com

Show all headers | View raw


On Sunday, April 6, 2014 1:23:51 AM UTC+11, Dagen Brock wrote:
> Can anyone suggest a good starting point for learning about segmented programming for the Apple IIgs?

Hi Dagen,

My understanding is that if you want to create a program that requires more than a bank of memory - exceeding (for example) 32k of executable code and 32k or relocation dictionary - then you will need to break that executable code up into segments of no more than 32k in size.

Merlin 16+ provides the linker directive SAV to support the creation of segments. The whole Merlin 16 chapter on linkers is interesting reading on this topic, however LINKER.XL is the relevant linker for creating IIgs applications.
http://www.apple-iigs.info/doc/fichiers/merlin816.pdf
See pages 150-163

As an example, here is the Marinetti Init linker file
http://marinetti.cvs.sourceforge.net/viewvc/marinetti/MOSP/Marinetti/Init/I.ALL.S?revision=1.12&view=markup

Which firstly assembles all the source files and then links them together into 8 segments.

Perhaps you'd like to use OMF Analyzer on the Marinetti Init and compare it with the Marinetti Init source code on Sourceforge to aid your understanding of what is going on.

I also wonder if the Programmer's Introduction to the Apple IIgs covers this topic. Sadly, I can't refer to it now and have not found it online.

Regards,
Andrew

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

S16, OMF and Segments Dagen Brock <DagenBrock@gmail.com> - 2014-04-05 07:23 -0700
  Re: S16, OMF and Segments  mmphosis <mmphosis@macgui.com> - 2014-04-05 17:11 +0000
    Re: S16, OMF and Segments Dagen Brock <DagenBrock@gmail.com> - 2014-04-05 13:09 -0700
  Re: S16, OMF and Segments Antoine Vignau <antoine.vignau@laposte.net> - 2014-04-05 22:59 -0700
  Re: S16, OMF and Segments ozkfest@gmail.com - 2014-04-07 06:37 -0700
    Re: S16, OMF and Segments Antoine Vignau <antoine.vignau@laposte.net> - 2014-04-07 13:23 -0700
      Re: S16, OMF and Segments "Bill Buckels" <bbuckels@mts.net> - 2014-04-08 07:07 -0500
        Re: S16, OMF and Segments Dagen Brock <DagenBrock@gmail.com> - 2014-04-08 13:00 -0700

csiph-web