AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/misc/library_examples.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:examples to create MorphOS shared libraries
Author:Ilkka Lehtoranta (ilkleht at isoveli.org)
Uploader:Ilkka Lehtoranta (ilkleht isoveli org)
Type:dev/misc
Version:1.0
Architecture:ppc-morphos
Date:2006-02-03
Download:http://aminet.net/dev/misc/library_examples.lha - View contents
Readme:http://aminet.net/dev/misc/library_examples.readme
Downloads:1119

Here are programming examples for MorphOS to create PPC native shared libraries.

There are four different types of examples:

Library_m68k
------------

This is PPC native library using M68k ABI. Parameters are passed via virtual
68k registers (d0-d7/a0-a5, library base in a6). Functions are callable from
68k and PPC code. Despite of M68k ABI the function calling mechanism is fully
PPC native unless library vector is patched by 68k code.


Library_sysv
------------

This is PPC native library using SysV ABI. Parameters are passed via PPC
registers and functions are callable from PPC code only. 68k programs can't
have an access to SysV functions.


Library_mixed
-------------

This is PPC native library where SysV ABI and M68k ABI entries are mixed into
user function area.


Library_68kgate
---------------

This is PPC native library using M68k ABI. It is simple wrapper for SysV library
making it possible to call SysV functions from 68k code. This is like previously
introduced Library_M68k version but not meant to be used by PPC native code.



Examples:

There are two makefiles: one for GCC and another (makefile.vbcc) for VBCC.
Since I don't have have VBCC at the moment VBCC support is completely untested
and may fail.

Makefiles are able to generate required header files for libraries but only
GCC is fully supported. FD2Pragma which is used for VBCC doesn't seem to
support "sysv function without base" format (sysv) or mixed entries.

Please note all examples are work in progress and may not work at all or have
strange bugs.


  Ilkka Lehtoranta, 9th January 2005


Contents of dev/misc/library_examples.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  245     847  28.9% -lh5- 1a49 Jan  7  2005 library/Library_68kgate/68kgate.c
[generic]                   93     156  59.6% -lh5- 92a6 Jan  7  2005 library/Library_68kgate/68kgate.h
[generic]                  112     223  50.2% -lh5- 1de3 Jan  8  2005 library/Library_68kgate/Developer/clib/library_68kgate_protos.h
[generic]                   84     132  63.6% -lh5- a9d7 Jan  7  2005 library/Library_68kgate/Developer/fd/library_68kgate.fd
[generic]                  287    1115  25.7% -lh5- 6618 Jan  8  2005 library/Library_68kgate/Developer/inline/librarygate_protos.h
[generic]                  267     756  35.3% -lh5- 91a6 Jan  8  2005 library/Library_68kgate/Developer/ppcinline/library_68kgate.h
[generic]                  288     674  42.7% -lh5- 000e Jan  7  2005 library/Library_68kgate/Developer/proto/library_68kgate.h
[generic]                 1268    3468  36.6% -lh5- 47b7 Jan  8  2005 library/Library_68kgate/example_m68k.library
[generic]                 1758    4536  38.8% -lh5- 4319 Jan  8  2005 library/Library_68kgate/example_m68k.library.db
[generic]                 1246    4892  25.5% -lh5- 6d18 Jan  9  2005 library/Library_68kgate/Library.c
[generic]                  330     775  42.6% -lh5- c7df Jan  7  2005 library/Library_68kgate/Library.h
[generic]                  488     967  50.5% -lh5- 465a Jan  8  2005 library/Library_68kgate/Makefile
[generic]                  422     964  43.8% -lh5- 7a6a Jan  8  2005 library/Library_68kgate/makefile.vbcc
[generic]                  108     214  50.5% -lh5- 56d4 Jan  8  2005 library/Library_m68k/Developer/clib/library_m68k_protos.h
[generic]                   88     132  66.7% -lh5- 509f Jan  7  2005 library/Library_m68k/Developer/fd/library_m68k.fd
[generic]                  284    1111  25.6% -lh5- 0ec3 Jan  8  2005 library/Library_m68k/Developer/inline/librarym68k_protos.h
[generic]                  289     964  30.0% -lh5- 187a Jan  8  2005 library/Library_m68k/Developer/ppcinline/library_m68k.h
[generic]                  282     651  43.3% -lh5- cf09 Jan  7  2005 library/Library_m68k/Developer/proto/library_m68k.h
[generic]                  972    2672  36.4% -lh5- 7720 Jan  8  2005 library/Library_m68k/example_m68k.library
[generic]                 1426    3688  38.7% -lh5- 731b Jan  8  2005 library/Library_m68k/example_m68k.library.db
[generic]                 1106    4372  25.3% -lh5- 8d8e Jan  7  2005 library/Library_m68k/Library.c
[generic]                  294     634  46.4% -lh5- be68 Jan  7  2005 library/Library_m68k/Library.h
[generic]                  229     774  29.6% -lh5- afec Jan  7  2005 library/Library_m68k/m68k.c
[generic]                   87     147  59.2% -lh5- cae6 Jan  7  2005 library/Library_m68k/m68k.h
[generic]                  480     938  51.2% -lh5- e178 Jan  8  2005 library/Library_m68k/Makefile
[generic]                  415     935  44.4% -lh5- 6321 Jan  8  2005 library/Library_m68k/makefile.vbcc
[generic]                  172     464  37.1% -lh5- 1b6f Jan  8  2005 library/Library_mixed/Developer/clib/library_mixed_protos.h
[generic]                  130     271  48.0% -lh5- 703b Jan  7  2005 library/Library_mixed/Developer/fd/library_mixed.fd
[generic]                  287    1118  25.7% -lh5- 6ffe Jan  8  2005 library/Library_mixed/Developer/inline/librarymixed_protos.h
[generic]                  437    1649  26.5% -lh5- 8f34 Jan  7  2005 library/Library_mixed/Developer/ppcinline/library_mixed.h
[generic]                  281     659  42.6% -lh5- deaa Jan  7  2005 library/Library_mixed/Developer/proto/library_mixed.h
[generic]                 1246    4104  30.4% -lh5- 866d Jan  8  2005 library/Library_mixed/example_mixed.library
[generic]                 1823    5472  33.3% -lh5- 7b32 Jan  8  2005 library/Library_mixed/example_mixed.library.db
[generic]                 1183    4761  24.8% -lh5- dbd5 Jan  7  2005 library/Library_mixed/Library.c
[generic]                  294     634  46.4% -lh5- be68 Jan  7  2005 library/Library_mixed/Library.h
[generic]                  231     778  29.7% -lh5- df50 Jan  7  2005 library/Library_mixed/m68k.c
[generic]                   89     147  60.5% -lh5- f0e4 Jan  7  2005 library/Library_mixed/m68k.h
[generic]                  495     981  50.5% -lh5- 9804 Jan  8  2005 library/Library_mixed/Makefile
[generic]                  432     975  44.3% -lh5- 7fe9 Jan  8  2005 library/Library_mixed/makefile.vbcc
[generic]                  296    1074  27.6% -lh5- c744 Jan  7  2005 library/Library_mixed/sysv.c
[generic]                  141     311  45.3% -lh5- 94ef Jan  7  2005 library/Library_mixed/sysv.h
[generic]                  106     214  49.5% -lh5- 267e Jan  7  2005 library/Library_sysv/Developer/clib/library_sysv_protos.h
[generic]                   85     128  66.4% -lh5- e843 Jan  7  2005 library/Library_sysv/Developer/fd/library_sysv.fd
[generic]                  282     852  33.1% -lh5- e7d6 Jan  7  2005 library/Library_sysv/Developer/ppcinline/library_sysv.h
[generic]                  279     651  42.9% -lh5- 5eba Jan  7  2005 library/Library_sysv/Developer/proto/library_sysv.h
[generic]                  978    2688  36.4% -lh5- c068 Jan  8  2005 library/Library_sysv/example_sysv.library
[generic]                 1435    3704  38.7% -lh5- ac9a Jan  8  2005 library/Library_sysv/example_sysv.library.db
[generic]                 1143    4516  25.3% -lh5- a66b Jan  7  2005 library/Library_sysv/Library.c
[generic]                  291     645  45.1% -lh5- 961b Jan  7  2005 library/Library_sysv/Library.h
[generic]                  476     940  50.6% -lh5- 34b1 Jan  8  2005 library/Library_sysv/Makefile
[generic]                  413     935  44.2% -lh5- f4b8 Jan  8  2005 library/Library_sysv/makefile.vbcc
[generic]                  211     666  31.7% -lh5- fdeb Jan  7  2005 library/Library_sysv/sysv.c
[generic]                   92     187  49.2% -lh5- 29f1 Jan  7  2005 library/Library_sysv/sysv.h
[generic]                  750    1615  46.4% -lh5- fe98 Jan  9  2005 library/ReadMe
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        54 files   27026   77876  34.7%            Feb  3 18:59

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>