home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / c / c_pl_lib / Gcc_Inst < prev   
Mailbox/MIME Entity  |  1993-06-24  |  14.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From pcl!doc.ic.ac.uk!uknet!mcsun!sun4nl!tnofel!llfs7 Thu Jun 24 12:41:32 BST 1993", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 70 63 6c | 21 64 6f 63 2e 69 63 2e |From pcl|!doc.ic.|
|00000010| 61 63 2e 75 6b 21 75 6b | 6e 65 74 21 6d 63 73 75 |ac.uk!uk|net!mcsu|
|00000020| 6e 21 73 75 6e 34 6e 6c | 21 74 6e 6f 66 65 6c 21 |n!sun4nl|!tnofel!|
|00000030| 6c 6c 66 73 37 20 54 68 | 75 20 4a 75 6e 20 32 34 |llfs7 Th|u Jun 24|
|00000040| 20 31 32 3a 34 31 3a 33 | 32 20 42 53 54 20 31 39 | 12:41:3|2 BST 19|
|00000050| 39 33 0a 41 72 74 69 63 | 6c 65 3a 20 31 35 31 36 |93.Artic|le: 1516|
|00000060| 34 20 6f 66 20 63 6f 6d | 70 2e 73 79 73 2e 61 63 |4 of com|p.sys.ac|
|00000070| 6f 72 6e 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |orn.News|groups: |
|00000080| 63 6f 6d 70 2e 73 79 73 | 2e 61 63 6f 72 6e 0a 50 |comp.sys|.acorn.P|
|00000090| 61 74 68 3a 20 70 63 6c | 21 64 6f 63 2e 69 63 2e |ath: pcl|!doc.ic.|
|000000a0| 61 63 2e 75 6b 21 75 6b | 6e 65 74 21 6d 63 73 75 |ac.uk!uk|net!mcsu|
|000000b0| 6e 21 73 75 6e 34 6e 6c | 21 74 6e 6f 66 65 6c 21 |n!sun4nl|!tnofel!|
|000000c0| 6c 6c 66 73 37 0a 46 72 | 6f 6d 3a 20 6c 6c 66 73 |llfs7.Fr|om: llfs|
|000000d0| 37 40 66 65 6c 2e 74 6e | 6f 2e 6e 6c 20 28 4c 2e |7@fel.tn|o.nl (L.|
|000000e0| 4c 2e 46 72 65 64 65 72 | 69 6b 73 29 0a 53 75 62 |L.Freder|iks).Sub|
|000000f0| 6a 65 63 74 3a 20 45 6e | 67 6c 69 73 68 20 76 65 |ject: En|glish ve|
|00000100| 72 73 69 6f 6e 20 6f 66 | 20 67 63 63 20 69 6e 73 |rsion of| gcc ins|
|00000110| 74 61 6c 6c 61 74 69 6f | 6e 20 64 6f 63 2e 0a 4d |tallatio|n doc..M|
|00000120| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 31 39 39 33 |essage-I|D: <1993|
|00000130| 4a 75 6e 32 33 2e 30 37 | 31 38 35 36 2e 37 38 37 |Jun23.07|1856.787|
|00000140| 35 40 66 65 6c 2e 74 6e | 6f 2e 6e 6c 3e 0a 53 75 |5@fel.tn|o.nl>.Su|
|00000150| 6d 6d 61 72 79 3a 20 67 | 63 63 0a 4b 65 79 77 6f |mmary: g|cc.Keywo|
|00000160| 72 64 73 3a 20 67 63 63 | 0a 4f 72 67 61 6e 69 7a |rds: gcc|.Organiz|
|00000170| 61 74 69 6f 6e 3a 20 54 | 4e 4f 20 50 68 79 73 69 |ation: T|NO Physi|
|00000180| 63 73 20 61 6e 64 20 45 | 6c 65 63 74 72 6f 6e 69 |cs and E|lectroni|
|00000190| 63 73 20 4c 61 62 6f 72 | 61 74 6f 72 79 0a 44 61 |cs Labor|atory.Da|
|000001a0| 74 65 3a 20 57 65 64 2c | 20 32 33 20 4a 75 6e 20 |te: Wed,| 23 Jun |
|000001b0| 31 39 39 33 20 30 37 3a | 31 38 3a 35 36 20 47 4d |1993 07:|18:56 GM|
|000001c0| 54 0a 4c 69 6e 65 73 3a | 20 34 31 31 0a 0a 4f 4b |T.Lines:| 411..OK|
|000001d0| 2c 20 66 6f 72 20 74 68 | 6f 73 65 20 6f 66 20 79 |, for th|ose of y|
|000001e0| 6f 75 20 77 68 6f 20 66 | 69 6e 64 20 74 68 65 20 |ou who f|ind the |
|000001f0| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 20 6e 6f 74 |installa|tion not|
|00000200| 65 73 20 68 61 72 64 20 | 74 6f 0a 72 65 61 64 3a |es hard |to.read:|
|00000210| 20 68 65 72 65 20 69 73 | 20 6d 79 20 74 72 61 6e | here is| my tran|
|00000220| 73 6c 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 27 |slation |of the '|
|00000230| 52 65 61 64 4d 65 27 20 | 66 69 6c 65 2e 20 4e 6f |ReadMe' |file. No|
|00000240| 74 65 3a 20 74 68 69 73 | 0a 69 73 20 61 20 71 75 |te: this|.is a qu|
|00000250| 69 63 6b 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 2c |ick tran|slation,|
|00000260| 20 69 74 20 69 73 20 6e | 6f 74 20 70 65 72 66 65 | it is n|ot perfe|
|00000270| 63 74 2e 20 49 20 68 61 | 76 65 20 63 68 61 6e 67 |ct. I ha|ve chang|
|00000280| 65 64 20 73 6f 6d 65 0a | 74 68 69 6e 67 73 20 61 |ed some.|things a|
|00000290| 6e 64 20 61 64 64 65 64 | 20 61 20 66 65 77 20 6c |nd added| a few l|
|000002a0| 69 6e 65 73 2e 0a 0a 4c | 6f 65 6b 20 46 72 65 64 |ines...L|oek Fred|
|000002b0| 65 72 69 6b 73 20 28 6c | 6c 66 73 37 40 66 65 6c |eriks (l|lfs7@fel|
|000002c0| 2e 74 6e 6f 2e 6e 6c 20 | 2f 20 6c 6f 65 6b 40 6e |.tno.nl |/ loek@n|
|000002d0| 74 2e 65 6c 2e 75 74 77 | 65 6e 74 65 2e 6e 6c 29 |t.el.utw|ente.nl)|
|000002e0| 0a 0a 2d 2d 2d 2d 2d 2d | 2d 2d 20 48 45 52 45 20 |..------|-- HERE |
|000002f0| 49 54 20 43 4f 4d 45 53 | 20 2d 2d 2d 2d 2d 2d 2d |IT COMES| -------|
|00000300| 2d 0a 0a 47 43 43 20 66 | 6f 72 20 52 49 53 43 20 |-..GCC f|or RISC |
|00000310| 4f 53 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |OS.-----|--------|
|00000320| 2d 2d 0a 0a 30 2e 20 49 | 6e 73 74 61 6c 6c 61 74 |--..0. I|nstallat|
|00000330| 69 6f 6e 0a 20 20 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion. -|--------|
|00000340| 2d 2d 2d 0a 0a 54 68 65 | 20 69 6e 73 74 61 6c 6c |---..The| install|
|00000350| 61 74 69 6f 6e 20 63 6f | 6e 73 69 73 74 73 20 6f |ation co|nsists o|
|00000360| 66 3a 0a 0a 20 20 31 2e | 20 52 55 4e 24 50 61 74 |f:.. 1.| RUN$Pat|
|00000370| 68 20 6d 75 73 74 20 62 | 65 20 65 78 74 65 6e 64 |h must b|e extend|
|00000380| 65 64 20 77 69 74 68 20 | 74 68 65 20 64 69 72 65 |ed with |the dire|
|00000390| 63 74 6f 72 79 20 6e 61 | 6d 65 2c 20 77 68 69 63 |ctory na|me, whic|
|000003a0| 68 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 0a 20 |h contai|ns the. |
|000003b0| 20 20 20 20 47 4e 55 20 | 43 20 65 78 65 63 75 74 | GNU |C execut|
|000003c0| 61 62 6c 65 73 2e 20 59 | 6f 75 20 63 61 6e 20 61 |ables. Y|ou can a|
|000003d0| 6c 73 6f 20 63 6f 70 79 | 20 74 68 65 6d 20 74 6f |lso copy| them to|
|000003e0| 20 79 6f 75 72 20 6c 69 | 62 72 61 72 79 20 64 69 | your li|brary di|
|000003f0| 72 65 63 74 6f 72 79 2e | 0a 0a 20 20 32 2e 20 53 |rectory.|.. 2. S|
|00000400| 65 74 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |et the v|ariable |
|00000410| 43 50 41 54 48 2e 20 54 | 68 69 73 20 76 61 72 69 |CPATH. T|his vari|
|00000420| 61 62 6c 65 20 73 68 6f | 75 6c 64 20 63 6f 6e 74 |able sho|uld cont|
|00000430| 61 69 6e 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 |ain the |director|
|00000440| 69 65 73 2c 0a 20 20 20 | 20 20 77 68 69 63 68 20 |ies,. | which |
|00000450| 63 6f 6e 74 61 69 6e 20 | 74 68 65 20 68 65 61 64 |contain |the head|
|00000460| 65 72 20 66 69 6c 65 73 | 2e 20 46 6f 72 20 69 6e |er files|. For in|
|00000470| 73 74 61 6e 63 65 3a 0a | 0a 20 20 20 20 20 53 65 |stance:.|. Se|
|00000480| 74 20 43 50 41 54 48 20 | 49 44 45 46 53 3a 3a 49 |t CPATH |IDEFS::I|
|00000490| 44 45 44 69 73 63 34 2e | 24 2e 44 65 73 6b 74 6f |DEDisc4.|$.Deskto|
|000004a0| 70 43 2e 43 6c 69 62 0a | 0a 20 20 20 20 20 43 50 |pC.Clib.|. CP|
|000004b0| 41 54 48 20 63 61 6e 20 | 63 6f 6e 74 61 69 6e 20 |ATH can |contain |
|000004c0| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 64 69 |more tha|n one di|
|000004d0| 72 65 63 74 6f 72 79 20 | 6e 61 6d 65 20 62 79 20 |rectory |name by |
|000004e0| 75 73 69 6e 67 20 27 3b | 27 20 73 65 70 65 72 61 |using ';|' sepera|
|000004f0| 74 6f 72 73 2e 0a 20 20 | 0a 20 20 20 20 20 46 6f |tors.. |. Fo|
|00000500| 72 20 69 6e 73 74 61 6e | 63 65 3a 0a 0a 20 20 20 |r instan|ce:.. |
|00000510| 20 20 49 66 20 79 6f 75 | 72 20 68 65 61 64 65 72 | If you|r header|
|00000520| 20 66 69 6c 65 73 20 61 | 72 65 20 69 6e 20 24 2e | files a|re in $.|
|00000530| 63 6c 69 62 2e 31 2e 68 | 20 61 6e 64 20 24 2e 63 |clib.1.h| and $.c|
|00000540| 6c 69 62 2e 32 2e 68 2c | 20 43 50 41 54 48 20 6d |lib.2.h,| CPATH m|
|00000550| 75 73 74 20 62 65 0a 20 | 20 20 20 20 73 65 74 20 |ust be. | set |
|00000560| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0a 0a 20 20 20 |as follo|ws:.. |
|00000570| 20 20 53 65 74 20 43 50 | 41 54 48 20 24 2e 63 6c | Set CP|ATH $.cl|
|00000580| 69 62 2e 31 3b 24 2e 63 | 6c 69 62 2e 32 0a 20 20 |ib.1;$.c|lib.2. |
|00000590| 20 20 0a 20 20 20 20 20 | 59 6f 75 20 6d 61 79 20 | . |You may |
|000005a0| 61 6c 73 6f 20 77 61 6e | 74 20 74 6f 20 73 65 74 |also wan|t to set|
|000005b0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 3a 0a | the var|iables:.|
|000005c0| 0a 20 20 20 20 20 43 5f | 49 4e 43 4c 55 44 45 5f |. C_|INCLUDE_|
|000005d0| 50 41 54 48 0a 20 20 20 | 20 20 43 50 4c 55 53 5f |PATH. | CPLUS_|
|000005e0| 49 4e 43 4c 55 44 45 5f | 50 41 54 48 0a 20 20 20 |INCLUDE_|PATH. |
|000005f0| 20 20 4f 42 4a 43 5f 49 | 4e 43 4c 55 44 45 5f 50 | OBJC_I|NCLUDE_P|
|00000600| 41 54 48 0a 20 20 20 20 | 20 4f 42 4a 43 50 4c 55 |ATH. | OBJCPLU|
|00000610| 53 5f 49 4e 4c 43 55 44 | 45 5f 50 41 54 48 0a 0a |S_INLCUD|E_PATH..|
|00000620| 20 20 20 20 20 43 50 4c | 55 53 5f 49 4e 43 4c 55 | CPL|US_INCLU|
|00000630| 44 45 5f 50 41 54 48 20 | 61 6e 64 20 4f 42 4a 43 |DE_PATH |and OBJC|
|00000640| 50 4c 55 53 5f 49 4e 43 | 4c 55 44 45 5f 50 41 54 |PLUS_INC|LUDE_PAT|
|00000650| 48 20 77 69 6c 6c 20 62 | 65 20 6f 6e 6c 79 20 75 |H will b|e only u|
|00000660| 73 65 64 20 64 75 72 69 | 6e 67 0a 20 20 20 20 20 |sed duri|ng. |
|00000670| 63 6f 6d 70 69 6c 69 6e | 67 20 63 2b 2b 20 73 6f |compilin|g c++ so|
|00000680| 75 72 63 65 73 2e 0a 0a | 20 20 33 2e 20 59 6f 75 |urces...| 3. You|
|00000690| 20 6d 61 79 20 68 61 76 | 65 20 74 6f 20 63 6f 6e | may hav|e to con|
|000006a0| 76 65 72 74 20 53 74 75 | 62 73 20 75 6e 64 20 52 |vert Stu|bs und R|
|000006b0| 49 53 43 5f 4f 53 6c 69 | 62 2e 0a 0a 20 20 34 2e |ISC_OSli|b... 4.|
|000006c0| 20 59 6f 75 20 6d 75 73 | 74 20 73 65 74 20 74 68 | You mus|t set th|
|000006d0| 65 20 76 61 72 69 61 62 | 6c 65 20 6d 75 6c 69 62 |e variab|le mulib|
|000006e0| 24 50 61 74 68 20 74 6f | 20 74 68 65 20 46 55 4c |$Path to| the FUL|
|000006f0| 4c 20 64 69 72 65 63 74 | 6f 72 79 20 6e 61 6d 65 |L direct|ory name|
|00000700| 20 77 68 65 72 65 0a 20 | 20 20 20 20 74 68 65 20 | where. | the |
|00000710| 72 69 73 63 6c 69 62 20 | 6c 69 62 72 61 72 69 65 |risclib |librarie|
|00000720| 73 20 63 61 6e 20 62 65 | 20 66 6f 75 6e 64 20 28 |s can be| found (|
|00000730| 65 2e 67 2e 20 73 74 75 | 62 73 6d 75 20 61 6e 64 |e.g. stu|bsmu and|
|00000740| 20 6f 73 6c 69 62 5f 6d | 75 29 2e 20 46 6f 72 0a | oslib_m|u). For.|
|00000750| 20 20 20 20 20 69 6e 73 | 74 61 6e 63 65 3a 0a 0a | ins|tance:..|
|00000760| 20 20 20 20 20 53 65 74 | 20 6d 75 6c 69 62 24 70 | Set| mulib$p|
|00000770| 61 74 68 20 49 44 45 46 | 53 3a 3a 49 44 45 44 69 |ath IDEF|S::IDEDi|
|00000780| 73 63 34 2e 24 2e 54 65 | 6d 70 2e 47 4e 55 2d 43 |sc4.$.Te|mp.GNU-C|
|00000790| 43 2e 67 63 63 32 2d 33 | 2d 33 2e 72 69 73 63 6c |C.gcc2-3|-3.riscl|
|000007a0| 69 62 2e 0a 0a 20 20 20 | 20 20 54 68 65 20 6c 69 |ib... | The li|
|000007b0| 62 72 61 72 69 65 73 20 | 63 61 6e 20 62 65 20 66 |braries |can be f|
|000007c0| 6f 75 6e 64 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |ound by |calling |
|000007d0| 4c 69 62 72 61 72 69 65 | 73 20 6d 75 6c 69 62 3a |Librarie|s mulib:|
|000007e0| 73 74 75 62 73 6d 75 20 | 61 6e 64 0a 20 20 20 20 |stubsmu |and. |
|000007f0| 20 6d 75 6c 69 62 3a 6f | 73 6c 69 62 5f 6d 75 0a | mulib:o|slib_mu.|
|00000800| 0a 20 20 35 2e 20 54 68 | 65 20 64 6f 63 75 6d 65 |. 5. Th|e docume|
|00000810| 6e 74 61 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 66 |ntation |can be f|
|00000820| 6f 75 6e 64 20 69 6e 20 | 74 68 65 20 27 64 6f 63 |ound in |the 'doc|
|00000830| 27 20 64 69 72 65 63 74 | 6f 72 79 2e 0a 0a 31 2e |' direct|ory...1.|
|00000840| 20 50 72 65 66 69 78 65 | 73 20 69 6e 20 66 69 6c | Prefixe|s in fil|
|00000850| 65 6e 61 6d 65 73 0a 20 | 20 20 2d 2d 2d 2d 2d 2d |enames. | ------|
|00000860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000870| 0a 55 6e 69 78 20 65 78 | 70 65 63 74 73 2c 20 69 |.Unix ex|pects, i|
|00000880| 6e 20 63 6f 6e 74 72 61 | 72 79 20 74 6f 20 52 49 |n contra|ry to RI|
|00000890| 53 43 20 4f 53 2c 20 74 | 68 61 74 20 66 69 6c 65 |SC OS, t|hat file|
|000008a0| 73 20 74 79 70 65 73 20 | 73 75 63 68 20 61 73 20 |s types |such as |
|000008b0| 2e 63 20 2e 6f 20 2e 63 | 63 0a 61 72 65 20 75 73 |.c .o .c|c.are us|
|000008c0| 65 64 20 61 73 20 65 78 | 74 65 6e 73 69 6f 6e 20 |ed as ex|tension |
|000008d0| 74 6f 20 74 68 65 20 66 | 69 6c 65 6e 61 6d 65 20 |to the f|ilename |
|000008e0| 28 65 2e 67 2e 20 6d 79 | 66 69 6c 65 2e 63 29 2e |(e.g. my|file.c).|
|000008f0| 20 47 43 43 20 75 73 65 | 73 20 61 6c 73 6f 20 61 | GCC use|s also a|
|00000900| 6c 6c 0a 66 69 6c 65 20 | 6e 61 6d 65 73 20 69 6e |ll.file |names in|
|00000910| 20 74 68 69 73 20 66 6f | 72 6d 61 74 2e 20 49 6e | this fo|rmat. In|
|00000920| 20 6f 72 64 65 72 20 74 | 6f 20 62 65 68 61 76 65 | order t|o behave|
|00000930| 20 63 6f 72 72 65 63 74 | 6c 79 20 75 6e 64 65 72 | correct|ly under|
|00000940| 20 52 49 53 43 20 4f 53 | 2c 0a 47 43 43 20 6d 6f | RISC OS|,.GCC mo|
|00000950| 76 65 73 20 74 68 65 20 | 66 69 6c 65 20 74 79 70 |ves the |file typ|
|00000960| 65 20 65 78 74 65 6e 73 | 69 6f 6e 20 74 6f 20 74 |e extens|ion to t|
|00000970| 68 65 20 73 74 61 72 74 | 20 6f 66 20 74 68 65 20 |he start| of the |
|00000980| 66 69 6c 65 6e 61 6d 65 | 2e 20 46 6f 72 20 69 6e |filename|. For in|
|00000990| 73 74 61 6e 63 65 0a 27 | 47 43 43 20 73 61 6d 70 |stance.'|GCC samp|
|000009a0| 6c 65 2e 63 27 20 77 69 | 6c 6c 20 62 65 20 27 47 |le.c' wi|ll be 'G|
|000009b0| 43 43 20 63 2e 73 61 6d | 70 6c 65 27 2e 20 4e 6f |CC c.sam|ple'. No|
|000009c0| 74 65 3a 20 27 69 72 67 | 65 6e 64 2e 73 61 6d 70 |te: 'irg|end.samp|
|000009d0| 6c 65 2e 63 27 20 77 69 | 6c 6c 20 62 65 0a 27 63 |le.c' wi|ll be.'c|
|000009e0| 2e 69 72 67 65 6e 64 2e | 73 61 6d 70 6c 65 27 2e |.irgend.|sample'.|
|000009f0| 20 47 43 43 20 75 73 65 | 73 20 74 68 65 73 65 20 | GCC use|s these |
|00000a00| 65 78 74 65 6e 73 69 6f | 6e 73 20 69 6e 20 6f 72 |extensio|ns in or|
|00000a10| 64 65 72 20 74 6f 20 66 | 69 6e 64 20 6f 75 74 20 |der to f|ind out |
|00000a20| 74 68 65 0a 66 69 6c 65 | 20 74 79 70 65 2e 20 0a |the.file| type. .|
|00000a30| 0a 54 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 73 20 |.The ext|ensions |
|00000a40| 68 61 76 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |have the| followi|
|00000a50| 6e 67 20 6d 65 61 6e 69 | 6e 67 3a 0a 0a 20 2e 63 |ng meani|ng:.. .c|
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 20 | | C |
|00000a70| 53 6f 75 72 63 65 0a 20 | 2e 63 63 2c 20 2e 63 78 |Source. |.cc, .cx|
|00000a80| 78 2c 20 2e 43 20 20 20 | 43 2b 2b 20 53 6f 75 72 |x, .C |C++ Sour|
|00000a90| 63 65 20 28 4e 6f 74 65 | 3a 20 6f 6e 6c 79 20 2e |ce (Note|: only .|
|00000aa0| 63 63 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 77 |cc can b|e used w|
|00000ab0| 69 74 68 20 52 49 53 43 | 20 4f 53 29 0a 20 2e 6d |ith RISC| OS). .m|
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 62 | | ob|
|00000ad0| 6a 65 63 74 69 76 65 2d | 43 20 53 6f 75 72 63 65 |jective-|C Source|
|00000ae0| 20 28 6e 6f 74 20 79 65 | 74 20 73 75 70 70 6f 72 | (not ye|t suppor|
|00000af0| 74 65 64 29 0a 20 2e 6f | 20 20 20 20 20 20 20 20 |ted). .o| |
|00000b00| 20 20 20 20 20 20 6f 62 | 6a 65 63 74 20 66 69 6c | ob|ject fil|
|00000b10| 65 0a 20 2e 68 20 20 20 | 20 20 20 20 20 20 20 20 |e. .h | |
|00000b20| 20 20 20 68 65 61 64 65 | 72 20 66 69 6c 65 0a 20 | heade|r file. |
|00000b30| 2e 69 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.i | |
|00000b40| 70 72 65 2d 70 72 6f 63 | 65 73 73 65 64 20 66 69 |pre-proc|essed fi|
|00000b50| 6c 65 20 28 63 70 70 20 | 6f 75 74 70 75 74 29 0a |le (cpp |output).|
|00000b60| 20 2e 69 69 20 20 20 20 | 20 20 20 20 20 20 20 20 | .ii | |
|00000b70| 20 70 72 65 2d 70 72 6f | 63 65 73 73 65 64 20 43 | pre-pro|cessed C|
|00000b80| 2b 2b 20 66 69 6c 65 0a | 20 2e 73 20 20 20 20 20 |++ file.| .s |
|00000b90| 20 20 20 20 20 20 20 20 | 20 61 73 73 65 6d 62 6c | | assembl|
|00000ba0| 65 72 20 73 6f 75 72 63 | 65 0a 20 2e 53 20 20 20 |er sourc|e. .S |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 61 73 73 65 6d | | assem|
|00000bc0| 62 6c 65 72 20 73 6f 75 | 72 63 65 20 28 6e 65 65 |bler sou|rce (nee|
|00000bd0| 64 73 20 70 72 65 2d 70 | 72 6f 63 65 73 73 69 6e |ds pre-p|rocessin|
|00000be0| 67 29 0a 0a 32 2e 20 4f | 70 74 69 6f 6e 73 20 66 |g)..2. O|ptions f|
|00000bf0| 6f 72 20 47 43 43 0a 20 | 20 20 2d 2d 2d 2d 2d 2d |or GCC. | ------|
|00000c00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 41 6e 20 65 78 |--------|-..An ex|
|00000c10| 61 63 74 20 65 78 70 6c | 61 6e 61 74 69 6f 6e 20 |act expl|anation |
|00000c20| 6f 66 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |of the c|ompiler |
|00000c30| 6f 70 74 69 6f 6e 73 20 | 61 72 65 20 67 69 76 65 |options |are give|
|00000c40| 6e 20 69 6e 20 74 68 65 | 20 66 69 6c 65 20 27 69 |n in the| file 'i|
|00000c50| 6e 76 6f 6b 65 27 0a 69 | 6e 20 74 68 65 20 64 6f |nvoke'.i|n the do|
|00000c60| 63 20 64 69 72 65 63 74 | 6f 72 79 2e 20 4d 6f 73 |c direct|ory. Mos|
|00000c70| 74 20 6f 70 74 69 6f 6e | 73 20 61 72 65 20 6a 75 |t option|s are ju|
|00000c80| 73 74 20 6c 69 6b 65 20 | 77 69 74 68 20 6f 74 68 |st like |with oth|
|00000c90| 65 72 20 43 20 63 6f 6d | 70 69 6c 65 72 73 2e 0a |er C com|pilers..|
|00000ca0| 59 6f 75 20 6d 75 73 74 | 20 6e 6f 74 20 66 6f 72 |You must| not for|
|00000cb0| 67 65 74 20 74 6f 20 75 | 73 65 20 74 68 65 20 2d |get to u|se the -|
|00000cc0| 4f 20 6f 72 20 2d 4f 32 | 20 28 6f 70 74 69 6d 69 |O or -O2| (optimi|
|00000cd0| 7a 69 6e 67 29 20 6f 70 | 74 69 6f 6e 2e 20 57 69 |zing) op|tion. Wi|
|00000ce0| 74 68 6f 75 74 20 74 68 | 65 73 65 0a 6f 70 74 69 |thout th|ese.opti|
|00000cf0| 6f 6e 73 20 79 6f 75 20 | 77 69 6c 6c 20 67 65 74 |ons you |will get|
|00000d00| 20 6c 65 73 73 20 65 66 | 66 69 63 69 65 6e 74 20 | less ef|ficient |
|00000d10| 63 6f 64 65 2e 0a 0a 4d | 61 63 68 69 6e 65 20 64 |code...M|achine d|
|00000d20| 65 70 65 6e 64 65 6e 74 | 20 6f 70 74 69 6f 6e 73 |ependent| options|
|00000d30| 3a 0a 0a 20 2d 6d 6e 6f | 2d 61 70 73 63 20 20 20 |:.. -mno|-apsc |
|00000d40| 20 20 20 20 20 20 20 20 | 20 75 73 65 20 74 68 65 | | use the|
|00000d50| 20 43 2d 63 61 6c 6c 20 | 63 6f 6e 76 65 6e 74 69 | C-call |conventi|
|00000d60| 6f 6e 20 66 6f 72 20 66 | 75 6e 63 74 69 6f 6e 73 |on for f|unctions|
|00000d70| 2e 0a 20 2d 6d 63 6f 70 | 72 6f 63 20 20 20 20 20 |.. -mcop|roc |
|00000d80| 20 20 20 20 20 20 20 20 | 43 6f 70 72 6f 63 65 73 | |Coproces|
|00000d90| 73 6f 72 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |sor is a|vailable|
|00000da0| 20 28 64 75 65 20 74 6f | 20 63 6f 64 65 20 6f 70 | (due to| code op|
|00000db0| 74 69 6d 69 7a 69 6e 67 | 2c 0a 20 20 20 20 20 20 |timizing|,. |
|00000dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000dd0| 77 6f 72 6b 73 20 61 6c | 73 6f 20 77 69 74 68 6f |works al|so witho|
|00000de0| 75 74 20 6f 6e 65 29 0a | 20 2d 6d 70 6f 6b 65 2d |ut one).| -mpoke-|
|00000df0| 66 75 6e 63 74 69 6f 6e | 2d 6e 61 6d 65 20 66 75 |function|-name fu|
|00000e00| 6e 63 74 69 6f 6e 20 6e | 61 6d 65 73 20 66 6f 72 |nction n|ames for|
|00000e10| 20 70 6f 73 74 20 6d 6f | 72 74 65 6d 20 64 65 62 | post mo|rtem deb|
|00000e20| 75 67 67 65 72 20 69 6e | 20 63 6f 64 65 0a 0a 33 |ugger in| code..3|
|00000e30| 2e 20 49 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 0a |. Includ|e files.|
|00000e40| 20 20 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -----|--------|
|00000e50| 0a 0a 46 6f 72 20 74 68 | 65 20 69 6e 63 6c 75 64 |..For th|e includ|
|00000e60| 65 20 66 69 6c 65 73 20 | 69 73 20 61 6c 73 6f 20 |e files |is also |
|00000e70| 74 68 65 20 70 72 65 66 | 69 78 2d 6e 6f 74 61 74 |the pref|ix-notat|
|00000e80| 69 6f 6e 20 66 6f 72 20 | 66 69 6c 65 20 74 79 70 |ion for |file typ|
|00000e90| 65 6e 20 75 73 65 64 2e | 20 49 6e 0a 74 68 65 20 |en used.| In.the |
|00000ea0| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 63 61 6e 20 |source c|ode can |
|00000eb0| 74 68 65 20 73 75 66 66 | 69 78 2d 6e 6f 74 61 74 |the suff|ix-notat|
|00000ec0| 69 6f 6e 20 62 65 20 75 | 73 65 64 2e 20 54 68 65 |ion be u|sed. The|
|00000ed0| 20 70 72 65 2d 70 72 6f | 63 65 73 73 6f 72 20 63 | pre-pro|cessor c|
|00000ee0| 6f 6e 76 65 72 74 73 0a | 74 68 65 73 65 20 66 69 |onverts.|these fi|
|00000ef0| 6c 65 20 6e 61 6d 65 73 | 20 74 6f 20 70 72 65 66 |le names| to pref|
|00000f00| 69 78 20 6e 6f 74 61 74 | 69 6f 6e 20 61 6e 64 20 |ix notat|ion and |
|00000f10| 72 65 63 6f 67 6e 69 7a | 65 73 20 74 68 65 20 55 |recogniz|es the U|
|00000f20| 6e 69 78 20 64 69 72 65 | 63 74 6f 72 79 20 70 61 |nix dire|ctory pa|
|00000f30| 74 68 73 2e 0a 46 6f 72 | 20 69 6e 73 74 61 6e 63 |ths..For| instanc|
|00000f40| 65 20 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 2f 73 |e /usr/i|nclude/s|
|00000f50| 79 73 2f 74 69 6d 65 73 | 2e 68 20 62 65 63 6f 6d |ys/times|.h becom|
|00000f60| 65 73 20 24 2e 75 73 72 | 2e 69 6e 63 6c 75 64 65 |es $.usr|.include|
|00000f70| 2e 73 79 73 2e 68 2e 74 | 69 6d 65 73 2c 0a 2e 2e |.sys.h.t|imes,...|
|00000f80| 2f 6d 79 2d 68 65 61 64 | 65 72 2e 68 20 62 65 63 |/my-head|er.h bec|
|00000f90| 6f 6d 65 73 20 5e 2e 68 | 2e 6d 79 2d 68 65 61 64 |omes ^.h|.my-head|
|00000fa0| 65 72 2e 20 54 68 65 20 | 63 6f 6d 70 69 6c 65 72 |er. The |compiler|
|00000fb0| 20 72 65 63 6f 67 6e 69 | 7a 65 73 20 6f 6e 6c 79 | recogni|zes only|
|00000fc0| 20 74 68 65 0a 66 69 6c | 65 20 65 78 74 65 6e 73 | the.fil|e extens|
|00000fd0| 69 6f 6e 73 20 2e 68 20 | 75 6e 64 20 2e 63 2e 0a |ions .h |und .c..|
|00000fe0| 0a 53 65 61 72 63 68 20 | 6f 72 64 65 72 20 66 6f |.Search |order fo|
|00000ff0| 72 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 3a |r includ|e files:|
|00001000| 0a 0a 20 20 31 2e 20 63 | 75 72 72 65 6e 74 20 64 |.. 1. c|urrent d|
|00001010| 69 72 65 63 74 6f 72 79 | 20 6f 72 20 74 68 65 20 |irectory| or the |
|00001020| 64 69 72 65 63 74 6f 72 | 69 65 73 2c 20 77 68 69 |director|ies, whi|
|00001030| 63 68 20 68 61 76 65 20 | 62 65 65 6e 20 65 6e 74 |ch have |been ent|
|00001040| 65 72 65 64 20 75 73 69 | 6e 67 0a 20 20 20 20 20 |ered usi|ng. |
|00001050| 74 68 65 20 2d 49 20 6f | 70 74 69 6f 6e 20 0a 20 |the -I o|ption . |
|00001060| 20 32 2e 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 | 2. the |director|
|00001070| 69 65 73 2c 20 77 68 69 | 63 68 20 61 72 65 20 67 |ies, whi|ch are g|
|00001080| 69 76 65 6e 20 62 79 20 | 43 50 41 54 48 2e 0a 20 |iven by |CPATH.. |
|00001090| 20 33 2e 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 | 3. the |director|
|000010a0| 69 65 73 20 67 69 76 65 | 6e 20 62 79 20 43 5f 49 |ies give|n by C_I|
|000010b0| 4e 43 4c 55 44 45 5f 50 | 41 54 48 20 28 53 74 61 |NCLUDE_P|ATH (Sta|
|000010c0| 6e 64 61 72 64 20 43 29 | 2c 0a 20 20 20 20 20 43 |ndard C)|,. C|
|000010d0| 50 4c 55 53 5f 49 4e 43 | 4c 55 44 45 5f 50 41 54 |PLUS_INC|LUDE_PAT|
|000010e0| 48 20 28 43 2b 2b 29 2c | 20 4f 42 4a 43 5f 49 4e |H (C++),| OBJC_IN|
|000010f0| 43 4c 55 44 45 5f 50 41 | 54 48 20 28 4f 62 6a 65 |CLUDE_PA|TH (Obje|
|00001100| 63 74 69 76 65 20 43 29 | 20 6f 72 0a 20 20 20 20 |ctive C)| or. |
|00001110| 20 4f 42 4a 43 50 4c 55 | 53 5f 49 4e 4c 43 55 44 | OBJCPLU|S_INLCUD|
|00001120| 45 5f 50 41 54 48 20 28 | 4f 62 6a 65 63 74 69 76 |E_PATH (|Objectiv|
|00001130| 65 20 43 2b 2b 29 0a 0a | 54 68 65 20 27 65 6e 76 |e C++)..|The 'env|
|00001140| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00001150| 65 73 27 20 6d 61 79 20 | 63 6f 6e 74 61 69 6e 20 |es' may |contain |
|00001160| 6d 6f 72 65 20 64 69 72 | 65 63 74 6f 72 69 65 73 |more dir|ectories|
|00001170| 20 28 62 79 20 75 73 69 | 6e 67 20 74 68 65 0a 27 | (by usi|ng the.'|
|00001180| 3b 27 20 63 68 61 72 61 | 63 74 65 72 20 61 73 20 |;' chara|cter as |
|00001190| 73 65 70 65 72 61 74 6f | 72 29 2e 20 54 68 65 20 |seperato|r). The |
|000011a0| 55 6e 69 78 20 6e 6f 74 | 61 74 69 6f 6e 20 6d 61 |Unix not|ation ma|
|000011b0| 79 20 61 6c 73 6f 20 62 | 65 20 75 73 65 64 2e 20 |y also b|e used. |
|000011c0| 48 6f 77 65 76 65 72 2c | 0a 64 69 66 66 65 72 65 |However,|.differe|
|000011d0| 6e 74 20 66 72 6f 6d 20 | 52 49 53 43 20 4f 53 2c |nt from |RISC OS,|
|000011e0| 20 74 68 65 20 27 2e 27 | 20 6f 72 20 27 2f 27 20 | the '.'| or '/' |
|000011f0| 63 68 61 72 61 63 74 65 | 72 20 6d 61 79 20 6e 6f |characte|r may no|
|00001200| 74 20 62 65 20 74 68 65 | 20 6c 61 73 74 0a 63 68 |t be the| last.ch|
|00001210| 61 72 61 63 74 65 72 20 | 69 6e 20 64 69 72 65 63 |aracter |in direc|
|00001220| 6f 72 79 20 6e 61 6d 65 | 20 28 74 68 65 20 50 72 |ory name| (the Pr|
|00001230| 65 2d 50 72 6f 63 65 73 | 73 6f 72 20 77 69 6c 6c |e-Proces|sor will|
|00001240| 20 64 6f 20 74 68 69 73 | 20 66 6f 72 20 79 6f 75 | do this| for you|
|00001250| 29 2e 20 41 6c 73 6f 0a | 74 68 65 20 27 2e 68 27 |). Also.|the '.h'|
|00001260| 20 6d 75 73 74 20 6e 6f | 74 20 62 65 20 75 73 65 | must no|t be use|
|00001270| 64 20 69 6e 20 74 68 65 | 20 70 61 74 68 20 6e 61 |d in the| path na|
|00001280| 6d 65 2e 0a 0a 34 2e 20 | 4c 69 6e 6b 65 72 0a 20 |me...4. |Linker. |
|00001290| 20 20 2d 2d 2d 2d 2d 2d | 0a 0a 54 68 65 20 6c 69 | ------|..The li|
|000012a0| 6e 6b 65 72 20 6d 75 73 | 74 20 62 65 20 63 61 6c |nker mus|t be cal|
|000012b0| 6c 65 64 20 73 65 70 61 | 72 61 74 65 6c 79 20 66 |led sepa|rately f|
|000012c0| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |rom the |compiler|
|000012d0| 20 28 79 6f 75 20 6d 75 | 73 74 20 61 6c 73 6f 0a | (you mu|st also.|
|000012e0| 75 73 65 20 74 68 65 20 | 2d 63 20 6f 70 74 69 6f |use the |-c optio|
|000012f0| 6e 29 2e 20 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |n). In o|rder to |
|00001300| 67 65 74 20 27 61 62 73 | 6f 6c 75 74 65 27 20 63 |get 'abs|olute' c|
|00001310| 6f 64 65 20 74 68 65 20 | 6c 69 6e 6b 65 72 20 6d |ode the |linker m|
|00001320| 75 73 74 20 62 65 0a 63 | 61 6c 6c 65 64 20 61 73 |ust be.c|alled as|
|00001330| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 0a 20 6d 75 6c 69 | follows|:.. muli|
|00001340| 6e 6b 20 2d 46 20 2d 61 | 33 32 37 36 38 20 2d 6f |nk -F -a|32768 -o|
|00001350| 73 61 6d 70 6c 65 20 2d | 43 20 6f 2e 73 61 6d 70 |sample -|C o.samp|
|00001360| 6c 65 31 20 6f 2e 73 61 | 6d 70 6c 65 32 20 6d 75 |le1 o.sa|mple2 mu|
|00001370| 6c 69 62 3a 73 74 75 62 | 73 6d 75 0a 20 73 65 74 |lib:stub|smu. set|
|00001380| 74 79 70 65 20 73 61 6d | 70 6c 65 20 61 62 73 6f |type sam|ple abso|
|00001390| 6c 75 74 65 0a 20 0a 45 | 78 70 6c 61 6e 61 74 69 |lute. .E|xplanati|
|000013a0| 6f 6e 3a 0a 0a 6d 75 6c | 69 62 24 70 61 74 68 20 |on:..mul|ib$path |
|000013b0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 64 69 72 |contains| the dir|
|000013c0| 65 63 74 6f 72 79 20 6e | 61 6d 65 20 77 68 65 72 |ectory n|ame wher|
|000013d0| 65 20 27 73 74 75 62 73 | 6d 75 27 20 63 61 6e 20 |e 'stubs|mu' can |
|000013e0| 62 65 20 66 6f 75 6e 64 | 2e 0a 0a 20 2d 46 20 20 |be found|... -F |
|000013f0| 20 20 20 20 20 66 69 72 | 73 74 20 6f 62 6a 65 63 | fir|st objec|
|00001400| 74 20 66 69 6c 65 20 6d | 75 73 74 20 61 6c 77 61 |t file m|ust alwa|
|00001410| 79 73 20 62 65 20 6c 69 | 6e 6b 65 64 20 28 6f 6e |ys be li|nked (on|
|00001420| 6c 79 20 2c 20 77 68 65 | 6e 20 72 65 66 65 72 65 |ly , whe|n refere|
|00001430| 6e 63 65 64 29 2e 0a 20 | 20 20 20 20 20 20 20 20 |nced).. | |
|00001440| 20 49 66 20 73 74 75 62 | 73 6d 75 20 69 73 20 6c | If stub|smu is l|
|00001450| 69 6e 6b 65 64 2c 20 74 | 68 69 73 20 6f 70 74 69 |inked, t|his opti|
|00001460| 6f 6e 20 69 73 20 6e 6f | 74 20 70 61 72 74 69 63 |on is no|t partic|
|00001470| 75 6c 61 72 79 20 6e 65 | 63 65 73 73 61 72 79 2c |ulary ne|cessary,|
|00001480| 0a 20 20 20 20 20 20 20 | 20 20 20 62 65 63 61 75 |. | becau|
|00001490| 73 65 20 73 74 75 62 73 | 6d 75 20 68 61 73 20 73 |se stubs|mu has s|
|000014a0| 65 74 20 74 68 65 20 4f | 62 6c 69 67 61 74 6f 72 |et the O|bligator|
|000014b0| 79 2d 4c 69 6e 6b 2d 46 | 6c 61 67 20 28 77 69 6c |y-Link-F|lag (wil|
|000014c0| 6c 20 61 6c 77 61 79 73 | 20 62 65 0a 20 20 20 20 |l always| be. |
|000014d0| 20 20 20 20 20 20 6c 69 | 6e 6b 65 64 29 20 61 6e | li|nked) an|
|000014e0| 64 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 72 65 66 |d contai|ns a ref|
|000014f0| 65 72 65 6e 63 65 20 74 | 6f 20 27 6d 61 69 6e 27 |erence t|o 'main'|
|00001500| 2e 0a 20 2d 61 33 32 37 | 36 38 20 20 41 62 73 6f |.. -a327|68 Abso|
|00001510| 6c 75 74 65 20 63 6f 64 | 65 20 77 69 74 68 20 65 |lute cod|e with e|
|00001520| 78 65 63 75 74 69 6f 6e | 20 61 64 64 72 65 73 73 |xecution| address|
|00001530| 20 26 38 30 30 30 2e 0a | 20 2d 6f 73 61 6d 70 6c | &8000..| -osampl|
|00001540| 65 20 73 61 6d 70 6c 65 | 20 77 69 6c 6c 20 62 65 |e sample| will be|
|00001550| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 69 6c 65 | the out|put file|
|00001560| 20 28 4e 6f 74 65 3a 20 | 6e 6f 20 73 70 61 63 65 | (Note: |no space|
|00001570| 73 29 0a 20 2d 43 20 20 | 20 20 20 20 20 6f 6e 6c |s). -C | onl|
|00001580| 79 20 74 68 65 20 63 6f | 64 65 2c 20 77 69 74 68 |y the co|de, with|
|00001590| 6f 75 74 20 68 65 61 64 | 65 72 2c 20 70 75 62 6c |out head|er, publ|
|000015a0| 69 63 73 2c 20 72 65 6c | 6f 63 73 2e 0a 0a 49 66 |ics, rel|ocs...If|
|000015b0| 20 74 68 65 20 2d 61 20 | 61 6e 64 20 2d 43 20 6f | the -a |and -C o|
|000015c0| 70 74 69 6f 6e 73 20 61 | 72 65 20 6e 6f 74 20 75 |ptions a|re not u|
|000015d0| 73 65 64 2c 20 61 20 6f | 62 6a 65 63 74 2d 66 69 |sed, a o|bject-fi|
|000015e0| 6c 65 20 77 69 6c 6c 20 | 62 65 20 70 72 6f 64 75 |le will |be produ|
|000015f0| 63 65 64 2e 0a 0a 46 75 | 72 74 68 65 72 20 6f 70 |ced...Fu|rther op|
|00001600| 74 69 6f 6e 73 3a 0a 0a | 20 2d 78 20 20 20 20 20 |tions:..| -x |
|00001610| 20 20 20 20 20 61 20 6c | 69 73 74 20 6f 66 20 73 | a l|ist of s|
|00001620| 79 6d 62 6f 6c 73 2c 20 | 6d 6f 64 75 6c 73 20 61 |ymbols, |moduls a|
|00001630| 6e 64 20 74 68 65 69 72 | 20 61 64 64 72 65 73 73 |nd their| address|
|00001640| 65 73 20 28 65 2e 67 2e | 20 6f 66 66 73 65 74 73 |es (e.g.| offsets|
|00001650| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 77 |). | w|
|00001660| 69 6c 6c 20 62 65 20 67 | 69 76 65 6e 2e 0a 0a 20 |ill be g|iven... |
|00001670| 2d 2b 20 20 20 20 20 20 | 20 20 20 20 6c 69 6e 6b |-+ | link|
|00001680| 20 43 2b 2b 20 2d 20 63 | 6f 64 65 2e 20 54 68 65 | C++ - c|ode. The|
|00001690| 20 6c 69 6e 6b 65 72 20 | 77 69 6c 6c 20 73 65 61 | linker |will sea|
|000016a0| 72 63 68 20 66 6f 72 20 | 73 79 6d 62 6f 6c 20 6e |rch for |symbol n|
|000016b0| 61 6d 65 73 20 69 6e 20 | 61 0a 20 20 20 20 20 20 |ames in |a. |
|000016c0| 20 20 20 20 20 20 20 43 | 2b 2b 20 66 61 73 68 69 | C|++ fashi|
|000016d0| 6f 6e 20 61 6e 64 20 69 | 66 20 74 68 65 79 20 63 |on and i|f they c|
|000016e0| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 66 6f 75 6e |ould not| be foun|
|000016f0| 64 2c 20 74 68 65 79 20 | 61 72 65 20 63 6f 6e 76 |d, they |are conv|
|00001700| 65 72 74 65 64 0a 20 20 | 20 20 20 20 20 20 20 20 |erted. | |
|00001710| 20 20 20 69 6e 74 6f 20 | 73 74 61 6e 64 61 72 64 | into |standard|
|00001720| 2d 43 20 6e 61 6d 65 2e | 20 46 6f 72 20 69 6e 73 |-C name.| For ins|
|00001730| 74 61 6e 63 65 3a 0a 0a | 20 20 20 20 20 20 20 20 |tance:..| |
|00001740| 20 20 20 20 20 70 72 69 | 6e 74 66 28 20 22 25 64 | pri|ntf( "%d|
|00001750| 22 2c 20 31 30 20 29 0a | 20 20 20 20 20 0a 20 20 |", 10 ).| . |
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 67 65 6e 65 72 | | gener|
|00001770| 61 74 65 73 20 69 6e 20 | 43 2b 2b 20 61 20 61 73 |ates in |C++ a as|
|00001780| 73 65 6d 62 6c 65 72 20 | 63 61 6c 6c 3a 0a 20 20 |sembler |call:. |
|00001790| 20 20 20 20 20 20 20 20 | 0a 20 20 20 20 20 20 20 | |. |
|000017a0| 20 20 20 20 20 20 2e 2e | 2e 20 62 6c 20 70 72 69 | ..|. bl pri|
|000017b0| 6e 74 66 5f 5f 46 50 63 | 69 0a 0a 20 20 20 20 20 |ntf__FPc|i.. |
|000017c0| 20 20 20 20 20 20 20 20 | 49 66 20 61 20 73 79 6d | |If a sym|
|000017d0| 62 6f 6c 20 70 72 69 6e | 74 66 5f 5f 46 50 63 69 |bol prin|tf__FPci|
|000017e0| 20 65 78 69 73 74 73 2c | 20 74 68 65 20 6c 69 6e | exists,| the lin|
|000017f0| 6b 65 72 20 77 69 6c 6c | 20 67 65 6e 65 72 61 74 |ker will| generat|
|00001800| 65 20 61 20 63 61 6c 6c | 0a 20 20 20 20 20 20 20 |e a call|. |
|00001810| 20 20 20 20 20 20 74 6f | 20 74 68 69 73 20 73 79 | to| this sy|
|00001820| 6d 62 6f 6c 2e 20 4f 74 | 68 65 72 77 69 73 65 20 |mbol. Ot|herwise |
|00001830| 28 77 69 74 68 20 74 68 | 65 20 2d 2b 20 6f 70 74 |(with th|e -+ opt|
|00001840| 69 6f 6e 29 20 74 68 65 | 20 6e 61 6d 65 20 70 72 |ion) the| name pr|
|00001850| 69 6e 74 66 0a 20 20 20 | 20 20 20 20 20 20 20 20 |intf. | |
|00001860| 20 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 20 28 | will b|e used (|
|00001870| 77 69 74 68 6f 75 74 20 | 5f 5f 46 2e 2e 2e 29 2e |without |__F...).|
|00001880| 0a 0a 20 2d 24 3c 73 75 | 66 66 69 78 3e 20 20 74 |.. -$<su|ffix> t|
|00001890| 68 65 20 63 68 61 72 61 | 63 74 65 72 73 2c 20 77 |he chara|cters, w|
|000018a0| 68 69 63 68 20 69 6e 20 | 43 2b 2b 20 73 79 6d 62 |hich in |C++ symb|
|000018b0| 6f 6c 20 6e 61 6d 65 73 | 20 69 73 20 75 73 65 64 |ol names| is used|
|000018c0| 20 62 65 74 77 65 65 6e | 0a 20 20 20 20 20 20 20 | between|. |
|000018d0| 20 20 20 20 20 20 74 68 | 65 20 27 6e 6f 72 6d 61 | th|e 'norma|
|000018e0| 6c 27 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 |l' name |of the f|
|000018f0| 75 6e 63 74 69 6f 6e 20 | 61 6e 64 20 74 68 65 20 |unction |and the |
|00001900| 74 79 70 65 2e 20 44 65 | 66 61 75 6c 74 3a 20 5f |type. De|fault: _|
|00001910| 5f 46 2e 0a 20 2d 75 20 | 20 20 20 20 20 20 64 6f |_F.. -u | do|
|00001920| 20 6e 6f 74 20 70 72 69 | 6e 74 20 61 20 6c 69 73 | not pri|nt a lis|
|00001930| 74 65 20 6f 66 20 75 6e | 64 65 66 69 6e 65 64 20 |te of un|defined |
|00001940| 65 78 74 65 72 6e 61 6c | 73 0a 0a 41 6c 6c 20 6f |external|s..All o|
|00001950| 74 68 65 72 20 6f 70 74 | 69 6f 6e 73 20 61 72 65 |ther opt|ions are|
|00001960| 20 69 67 6e 6f 72 65 64 | 20 62 79 20 52 49 53 43 | ignored| by RISC|
|00001970| 20 4f 53 20 76 65 72 73 | 69 6f 6e 20 28 68 61 76 | OS vers|ion (hav|
|00001980| 65 20 6e 6f 20 6d 65 61 | 6e 69 6e 67 29 2e 0a 0a |e no mea|ning)...|
|00001990| 53 74 75 62 73 20 4d 55 | 53 54 20 62 65 20 6c 69 |Stubs MU|ST be li|
|000019a0| 6e 6b 65 64 20 62 65 66 | 6f 72 65 20 74 68 65 20 |nked bef|ore the |
|000019b0| 52 49 53 43 5f 4f 53 6c | 69 62 20 69 73 20 6c 69 |RISC_OSl|ib is li|
|000019c0| 6e 6b 65 64 2e 20 54 68 | 65 20 66 69 6c 65 20 77 |nked. Th|e file w|
|000019d0| 68 69 63 68 0a 63 6f 6e | 74 61 69 6e 73 20 74 68 |hich.con|tains th|
|000019e0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 6d 61 69 6e 20 |e functi|on main |
|000019f0| 4d 55 53 54 20 62 65 20 | 6c 69 6e 6b 65 64 20 66 |MUST be |linked f|
|00001a00| 69 72 73 74 2e 20 49 6e | 20 6f 74 68 65 72 20 63 |irst. In| other c|
|00001a10| 61 73 65 73 20 74 68 65 | 0a 6f 72 64 65 72 20 6f |ases the|.order o|
|00001a20| 66 20 74 68 65 20 6f 62 | 6a 65 63 74 20 66 69 6c |f the ob|ject fil|
|00001a30| 65 73 20 64 6f 65 73 6e | 27 74 20 6d 61 74 74 65 |es doesn|'t matte|
|00001a40| 72 2e 20 4f 62 6a 65 63 | 74 73 20 77 68 69 63 68 |r. Objec|ts which|
|00001a50| 20 61 72 65 20 6e 6f 74 | 20 72 65 66 65 72 65 6e | are not| referen|
|00001a60| 63 65 64 0a 62 79 20 6e | 6f 6e 65 20 6f 66 20 74 |ced.by n|one of t|
|00001a70| 68 65 20 6f 74 68 65 72 | 20 6f 62 6a 65 63 74 20 |he other| object |
|00001a80| 66 69 6c 65 73 20 61 72 | 65 20 73 69 6d 70 6c 79 |files ar|e simply|
|00001a90| 20 69 67 6e 6f 72 65 64 | 2e 20 46 6f 72 20 69 6e | ignored|. For in|
|00001aa0| 73 74 61 6e 63 65 3a 0a | 0a 20 6d 75 6c 69 6e 6b |stance:.|. mulink|
|00001ab0| 20 2d 46 20 6f 2e 73 61 | 6d 70 6c 65 31 20 6f 2e | -F o.sa|mple1 o.|
|00001ac0| 73 61 6d 70 6c 65 32 20 | 6d 75 6c 69 62 3a 73 74 |sample2 |mulib:st|
|00001ad0| 75 62 73 6d 75 0a 0a 6f | 2e 73 61 6d 70 6c 65 32 |ubsmu..o|.sample2|
|00001ae0| 20 77 69 6c 6c 20 6e 6f | 74 20 62 65 20 6c 69 6e | will no|t be lin|
|00001af0| 6b 65 64 2c 20 69 66 20 | 6e 65 69 74 68 65 72 20 |ked, if |neither |
|00001b00| 69 6e 20 6d 75 6c 69 62 | 3a 73 74 75 62 73 6d 75 |in mulib|:stubsmu|
|00001b10| 20 6e 6f 72 20 69 6e 20 | 6f 2e 73 61 6d 70 6c 65 | nor in |o.sample|
|00001b20| 31 0a 61 20 66 75 6e 63 | 74 69 6f 6e 20 6f 72 20 |1.a func|tion or |
|00001b30| 76 61 72 69 61 62 6c 65 | 20 66 72 6f 6d 20 6f 2e |variable| from o.|
|00001b40| 73 61 6d 70 6c 65 31 20 | 69 73 20 72 65 66 65 72 |sample1 |is refer|
|00001b50| 65 6e 63 65 64 2e 0a 0a | 49 66 20 53 74 75 62 73 |enced...|If Stubs|
|00001b60| 20 61 72 65 20 6c 69 6e | 6b 65 64 2c 20 74 68 65 | are lin|ked, the|
|00001b70| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00001b80| 67 65 20 63 6f 75 6c 64 | 20 62 65 20 70 72 69 6e |ge could| be prin|
|00001b90| 74 65 64 3a 0a 0a 20 75 | 6e 72 65 73 6f 6c 76 65 |ted:.. u|nresolve|
|00001ba0| 64 20 65 78 74 65 72 6e | 61 6c 28 73 29 0a 20 20 |d extern|al(s). |
|00001bb0| 20 27 5f 5f 72 6f 6f 74 | 5f 73 74 61 63 6b 5f 73 | '__root|_stack_s|
|00001bc0| 69 7a 65 27 20 69 6e 20 | 6d 6f 64 75 6c 65 20 27 |ize' in |module '|
|00001bd0| 53 74 75 62 24 24 43 6f | 64 65 27 0a 20 20 20 27 |Stub$$Co|de'. '|
|00001be0| 5f 5f 52 65 6c 6f 63 43 | 6f 64 65 27 20 69 6e 20 |__RelocC|ode' in |
|00001bf0| 6d 6f 64 75 6c 65 20 27 | 53 74 75 62 24 24 43 6f |module '|Stub$$Co|
|00001c00| 64 65 27 0a 0a 42 6f 74 | 68 20 72 65 66 65 72 65 |de'..Bot|h refere|
|00001c10| 6e 63 65 73 20 61 72 65 | 20 69 6e 20 41 4f 46 2d |nces are| in AOF-|
|00001c20| 66 69 6c 65 73 20 61 73 | 20 27 77 65 61 6b 20 62 |files as| 'weak b|
|00001c30| 69 6e 64 69 6e 67 27 20 | 64 65 66 69 6e 65 64 20 |inding' |defined |
|00001c40| 61 6e 64 20 64 6f 6e 27 | 74 20 68 61 76 65 0a 74 |and don'|t have.t|
|00001c50| 6f 20 62 65 20 64 65 63 | 6c 61 72 65 64 2e 20 41 |o be dec|lared. A|
|00001c60| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 77 69 6c 6c |pplicati|ons will|
|00001c70| 20 62 65 20 6c 69 6e 6b | 65 64 20 63 6f 72 72 65 | be link|ed corre|
|00001c80| 63 74 6c 79 2e 0a 0a 49 | 66 20 74 68 65 20 52 49 |ctly...I|f the RI|
|00001c90| 53 43 5f 4f 53 6c 69 62 | 20 69 73 20 6c 69 6e 6b |SC_OSlib| is link|
|00001ca0| 65 64 2c 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ed, the |followin|
|00001cb0| 67 20 6d 65 73 73 61 67 | 65 20 69 73 20 70 72 69 |g messag|e is pri|
|00001cc0| 6e 74 65 64 3a 0a 0a 20 | 77 61 72 6e 69 6e 67 3a |nted:.. |warning:|
|00001cd0| 20 64 6f 75 62 6c 65 20 | 64 65 66 69 6e 65 64 20 | double |defined |
|00001ce0| 70 75 62 6c 69 63 20 76 | 61 72 69 61 62 6c 65 28 |public v|ariable(|
|00001cf0| 73 29 3a 0a 0a 53 69 6d | 70 6c 79 20 69 67 6e 6f |s):..Sim|ply igno|
|00001d00| 72 65 20 74 68 69 73 20 | 3a 2d 29 0a 0a 35 2e 20 |re this |:-)..5. |
|00001d10| 41 4f 46 43 6f 6e 76 65 | 72 74 0a 20 20 20 2d 2d |AOFConve|rt. --|
|00001d20| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 0a 41 4f 46 43 6f 6e |--------|..AOFCon|
|00001d30| 76 65 72 74 20 69 73 20 | 61 20 75 74 69 6c 69 74 |vert is |a utilit|
|00001d40| 79 20 77 68 69 63 68 20 | 63 6f 6e 76 65 72 74 73 |y which |converts|
|00001d50| 20 6f 62 6a 65 63 74 20 | 66 69 6c 65 73 20 69 6e | object |files in|
|00001d60| 20 41 4f 46 2d 46 6f 72 | 6d 61 74 20 69 6e 74 6f | AOF-For|mat into|
|00001d70| 0a 74 68 65 20 4d 55 50 | 52 4f 53 20 66 6f 72 6d |.the MUP|ROS form|
|00001d80| 61 74 2e 0a 0a 59 6f 75 | 20 68 61 76 65 20 74 6f |at...You| have to|
|00001d90| 20 75 73 65 20 69 74 20 | 61 73 20 66 6f 6c 6c 6f | use it |as follo|
|00001da0| 77 73 3a 0a 0a 20 41 4f | 46 43 6f 6e 76 65 72 74 |ws:.. AO|FConvert|
|00001db0| 20 2d 6c 20 2d 6f 73 61 | 6d 70 6c 65 20 6f 2e 73 | -l -osa|mple o.s|
|00001dc0| 61 6d 70 6c 65 0a 0a 54 | 68 65 20 6f 70 74 69 6f |ample..T|he optio|
|00001dd0| 6e 20 2d 6c 20 73 75 70 | 70 72 65 73 73 65 73 20 |n -l sup|presses |
|00001de0| 61 6c 6c 20 77 61 72 6e | 69 6e 67 73 20 28 77 68 |all warn|ings (wh|
|00001df0| 69 63 68 20 61 72 65 20 | 6e 6f 74 20 69 6e 74 65 |ich are |not inte|
|00001e00| 72 65 73 74 69 6e 67 29 | 2e 20 44 75 72 69 6e 67 |resting)|. During|
|00001e10| 0a 73 6f 6d 65 20 63 69 | 72 63 75 6d 73 74 61 6e |.some ci|rcumstan|
|00001e20| 63 65 73 20 79 6f 75 20 | 77 69 6c 6c 20 61 6c 73 |ces you |will als|
|00001e30| 6f 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 74 68 |o have t|o use th|
|00001e40| 65 20 2d 4f 20 6f 70 74 | 69 6f 6e 2e 20 54 68 65 |e -O opt|ion. The|
|00001e50| 6e 20 77 69 6c 6c 20 74 | 68 65 0a 63 6f 6e 76 65 |n will t|he.conve|
|00001e60| 72 74 65 64 20 6f 62 6a | 65 63 74 20 41 4c 57 41 |rted obj|ect ALWA|
|00001e70| 59 53 20 62 65 20 6c 69 | 6e 6b 65 64 20 28 69 66 |YS be li|nked (if|
|00001e80| 20 69 74 20 69 73 20 75 | 73 65 64 20 73 6f 6d 65 | it is u|sed some|
|00001e90| 77 68 65 72 65 20 69 6e | 20 63 6f 6e 6a 75 6e 63 |where in| conjunc|
|00001ea0| 74 69 6f 6e 0a 77 69 74 | 68 20 4d 55 4c 49 4e 4b |tion.wit|h MULINK|
|00001eb0| 2c 20 65 76 65 6e 20 69 | 66 20 6e 6f 20 72 65 66 |, even i|f no ref|
|00001ec0| 65 72 65 6e 63 65 20 69 | 73 20 66 75 6c 6c 66 69 |erence i|s fullfi|
|00001ed0| 6c 6c 65 64 29 2e 0a 0a | 36 2e 20 41 73 73 65 6d |lled)...|6. Assem|
|00001ee0| 62 6c 65 72 0a 20 20 20 | 2d 2d 2d 2d 2d 2d 2d 2d |bler. |--------|
|00001ef0| 2d 0a 0a 49 66 20 79 6f | 75 20 6c 69 6b 65 20 74 |-..If yo|u like t|
|00001f00| 6f 20 75 73 65 20 74 68 | 65 20 61 73 73 65 6d 62 |o use th|e assemb|
|00001f10| 6c 65 72 2c 20 79 6f 75 | 20 61 72 65 20 72 65 66 |ler, you| are ref|
|00001f20| 65 72 72 65 64 20 74 6f | 20 74 68 65 20 74 65 78 |erred to| the tex|
|00001f30| 20 66 69 6c 65 20 28 69 | 6e 20 74 68 65 0a 64 6f | file (i|n the.do|
|00001f40| 63 20 64 69 72 65 63 74 | 6f 72 79 29 20 61 6e 64 |c direct|ory) and|
|00001f50| 20 74 68 65 20 52 49 53 | 43 20 4f 53 20 50 52 4d | the RIS|C OS PRM|
|00001f60| 27 73 2e 20 54 68 65 20 | 61 73 73 65 6d 62 6c 65 |'s. The |assemble|
|00001f70| 72 20 69 73 20 63 61 6c | 6c 65 64 20 62 79 20 75 |r is cal|led by u|
|00001f80| 73 69 6e 67 3a 0a 0a 20 | 61 73 20 2d 6f 20 6f 2e |sing:.. |as -o o.|
|00001f90| 73 61 6d 70 6c 65 20 73 | 2e 73 61 6d 70 6c 65 0a |sample s|.sample.|
|00001fa0| 20 20 20 20 20 20 20 20 | 0a 41 20 6f 62 6a 65 63 | |.A objec|
|00001fb0| 74 20 66 69 6c 65 20 69 | 6e 20 4d 55 50 52 4f 53 |t file i|n MUPROS|
|00001fc0| 20 66 6f 72 6d 61 74 20 | 77 69 6c 6c 20 62 65 20 | format |will be |
|00001fd0| 67 65 6e 65 72 61 74 65 | 64 2e 20 4e 6f 74 65 3a |generate|d. Note:|
|00001fe0| 20 61 73 73 65 6d 62 6c | 65 72 0a 69 6e 73 74 72 | assembl|er.instr|
|00001ff0| 75 63 74 69 6f 6e 73 20 | 6d 75 73 74 20 62 65 20 |uctions |must be |
|00002000| 6c 6f 77 65 72 20 63 61 | 73 65 2e 20 52 65 67 69 |lower ca|se. Regi|
|00002010| 73 74 65 72 20 6e 61 6d | 65 73 20 6d 61 79 20 62 |ster nam|es may b|
|00002020| 65 20 75 70 70 65 72 20 | 63 61 73 65 20 6f 72 0a |e upper |case or.|
|00002030| 6c 6f 77 65 72 20 63 61 | 73 65 2e 20 41 52 4d 2f |lower ca|se. ARM/|
|00002040| 4d 55 50 52 4f 53 20 73 | 70 65 63 69 66 69 63 20 |MUPROS s|pecific |
|00002050| 70 73 65 75 64 6f 2d 69 | 6e 73 74 72 75 63 74 69 |pseudo-i|nstructi|
|00002060| 6f 6e 73 3a 0a 0a 20 2e | 6f 62 6a 6e 61 6d 65 20 |ons:.. .|objname |
|00002070| 3c 6e 61 6d 65 3e 20 20 | 20 20 20 20 20 74 68 65 |<name> | the|
|00002080| 20 6a 75 73 74 20 61 73 | 73 65 6d 62 6c 65 64 20 | just as|sembled |
|00002090| 6f 62 6a 65 63 74 20 77 | 69 6c 6c 20 62 65 20 63 |object w|ill be c|
|000020a0| 61 6c 6c 65 64 0a 20 20 | 20 20 20 20 20 20 20 20 |alled. | |
|000020b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3c 6e 61 | | <na|
|000020c0| 6d 65 3e 20 28 44 65 66 | 61 75 6c 74 3a 20 44 61 |me> (Def|ault: Da|
|000020d0| 74 65 69 6e 61 6d 65 29 | 0a 20 2e 73 65 67 69 64 |teiname)|. .segid|
|000020e0| 20 3c 6e 61 6d 65 3e 20 | 20 20 20 20 20 20 20 20 | <name> | |
|000020f0| 74 68 65 20 73 65 67 6d | 65 6e 74 20 49 44 20 62 |the segm|ent ID b|
|00002100| 65 63 6f 6d 65 73 20 3c | 6e 61 6d 65 3e 20 28 44 |ecomes <|name> (D|
|00002110| 65 66 61 75 6c 74 3a 20 | 27 63 6f 64 65 27 29 0a |efault: |'code').|
|00002120| 20 2e 73 65 67 61 74 74 | 72 20 3c 27 52 4f 27 7c | .segatt|r <'RO'||
|00002130| 27 52 57 27 3e 20 20 52 | 65 61 64 2d 6f 6e 6c 79 |'RW'> R|ead-only|
|00002140| 20 6f 72 20 52 65 61 64 | 2d 57 72 69 74 65 20 53 | or Read|-Write S|
|00002150| 65 67 6d 65 6e 74 20 28 | 44 65 66 61 75 6c 74 3a |egment (|Default:|
|00002160| 20 27 52 57 27 29 0a 0a | 41 74 20 74 68 65 20 6d | 'RW')..|At the m|
|00002170| 6f 6d 65 6e 74 20 74 68 | 65 20 61 73 73 65 6d 62 |oment th|e assemb|
|00002180| 6c 65 72 20 64 6f 65 73 | 20 6e 6f 74 20 73 75 70 |ler does| not sup|
|00002190| 70 6f 72 74 20 73 65 70 | 61 72 61 74 65 20 63 6f |port sep|arate co|
|000021a0| 64 65 2c 20 64 61 74 61 | 20 61 6e 64 20 6e 75 6c |de, data| and nul|
|000021b0| 6c 0a 69 6e 69 74 69 61 | 6c 69 73 65 64 20 73 65 |l.initia|lised se|
|000021c0| 67 6d 65 6e 74 73 20 28 | 2e 74 65 78 74 2c 20 2e |gments (|.text, .|
|000021d0| 64 61 74 61 2c 20 2e 62 | 73 73 29 2c 20 74 68 65 |data, .b|ss), the|
|000021e0| 73 65 20 77 69 6c 6c 20 | 62 65 20 61 73 73 65 6d |se will |be assem|
|000021f0| 62 6c 65 64 20 69 6e 0a | 64 69 66 66 65 72 65 6e |bled in.|differen|
|00002200| 74 20 66 69 6c 65 73 2e | 0a 0a 41 6e 20 65 78 61 |t files.|..An exa|
|00002210| 6d 70 6c 65 20 6f 66 20 | 61 20 61 73 73 65 6d 62 |mple of |a assemb|
|00002220| 6c 65 72 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |ler sour|ce code |
|00002230| 69 73 20 72 69 73 63 6c | 69 62 2e 73 2e 64 69 76 |is riscl|ib.s.div|
|00002240| 2d 66 61 73 74 2e 20 4d | 6f 72 65 20 65 78 61 6d |-fast. M|ore exam|
|00002250| 70 6c 65 73 0a 63 61 6e | 20 62 65 20 67 65 6e 65 |ples.can| be gene|
|00002260| 72 61 74 65 64 20 75 73 | 69 6e 67 20 47 43 43 20 |rated us|ing GCC |
|00002270| 2d 4f 20 2d 53 20 2e 2e | 2e 0a 0a 41 20 66 75 6c |-O -S ..|...A ful|
|00002280| 6c 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 61 73 |l list o|f the as|
|00002290| 73 65 6d 62 6c 65 72 20 | 69 6e 73 74 72 75 63 74 |sembler |instruct|
|000022a0| 69 6f 6e 73 20 28 66 72 | 6f 6d 20 74 68 65 20 73 |ions (fr|om the s|
|000022b0| 6f 75 72 63 65 20 63 6f | 64 65 29 3a 0a 0a 2f 2a |ource co|de):../*|
|000022c0| 20 66 6f 72 6d 61 74 20 | 6f 66 20 74 68 65 20 61 | format |of the a|
|000022d0| 73 73 65 6d 62 6c 65 72 | 20 73 74 72 69 6e 67 20 |ssembler| string |
|000022e0| 3a 0a 20 20 20 0a 20 20 | 20 25 3c 62 69 74 66 69 |:. . | %<bitfi|
|000022f0| 65 6c 64 3e 72 20 20 20 | 20 20 20 20 20 20 70 72 |eld>r | pr|
|00002300| 69 6e 74 20 61 73 20 61 | 6e 20 41 52 4d 20 72 65 |int as a|n ARM re|
|00002310| 67 69 73 74 65 72 0a 20 | 20 20 25 3c 62 69 74 66 |gister. | %<bitf|
|00002320| 69 65 6c 64 3e 66 20 20 | 20 20 20 20 20 20 20 70 |ield>f | p|
|00002330| 72 69 6e 74 20 61 20 66 | 6c 6f 61 74 69 6e 67 20 |rint a f|loating |
|00002340| 70 6f 69 6e 74 20 63 6f | 6e 73 74 61 6e 74 20 69 |point co|nstant i|
|00002350| 66 20 3e 37 20 65 6c 73 | 65 20 61 6e 0a 20 20 20 |f >7 els|e an. |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002370| 20 20 20 20 20 66 70 20 | 72 65 67 69 73 74 65 72 | fp |register|
|00002380| 0a 20 20 20 25 63 20 20 | 20 20 20 20 20 20 20 20 |. %c | |
|00002390| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 63 | | print c|
|000023a0| 6f 6e 64 69 74 69 6f 6e | 20 63 6f 64 65 20 28 61 |ondition| code (a|
|000023b0| 6c 77 61 79 73 20 62 69 | 74 73 20 32 38 2d 33 31 |lways bi|ts 28-31|
|000023c0| 29 0a 20 20 20 25 50 20 | 20 20 20 20 20 20 20 20 |). %P | |
|000023d0| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 20 | | print |
|000023e0| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 70 |floating| point p|
|000023f0| 72 65 63 69 73 69 6f 6e | 20 69 6e 20 61 72 69 74 |recision| in arit|
|00002400| 68 6d 65 74 69 63 20 69 | 6e 73 6e 0a 20 20 20 25 |hmetic i|nsn. %|
|00002410| 51 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Q | |
|00002420| 20 20 20 20 70 72 69 6e | 74 20 66 6c 6f 61 74 69 | prin|t floati|
|00002430| 6e 67 20 70 6f 69 6e 74 | 20 70 72 65 63 69 73 69 |ng point| precisi|
|00002440| 6f 6e 20 69 6e 20 6c 64 | 66 2f 73 74 66 20 69 6e |on in ld|f/stf in|
|00002450| 73 6e 0a 20 20 20 25 52 | 20 20 20 20 20 20 20 20 |sn. %R| |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 | | print|
|00002470| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00002480| 72 6f 75 6e 64 69 6e 67 | 20 6d 6f 64 65 0a 20 20 |rounding| mode. |
|00002490| 20 25 3c 62 69 74 6e 75 | 6d 3e 27 63 20 20 20 20 | %<bitnu|m>'c |
|000024a0| 20 20 20 20 20 20 70 72 | 69 6e 74 20 73 70 65 63 | pr|int spec|
|000024b0| 69 66 69 65 64 20 63 68 | 61 72 20 69 66 66 20 62 |ified ch|ar iff b|
|000024c0| 69 74 20 69 73 20 6f 6e | 65 0a 20 20 20 25 3c 62 |it is on|e. %<b|
|000024d0| 69 74 6e 75 6d 3e 2d 3c | 6c 65 6e 3e 27 63 20 20 |itnum>-<|len>'c |
|000024e0| 20 20 70 72 69 6e 74 20 | 73 70 65 63 69 66 69 65 | print |specifie|
|000024f0| 64 20 63 68 61 72 20 69 | 66 66 20 62 69 74 20 69 |d char i|ff bit i|
|00002500| 73 20 6f 6e 65 20 61 6e | 64 20 6c 65 6e 67 74 68 |s one an|d length|
|00002510| 20 6f 66 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | of. | |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6d 6d | | comm|
|00002530| 61 6e 64 20 61 66 74 65 | 72 20 63 20 69 73 20 61 |and afte|r c is a|
|00002540| 74 20 6c 65 61 73 74 20 | 6c 65 6e 0a 20 20 20 25 |t least |len. %|
|00002550| 3c 62 69 74 6e 75 6d 3e | 60 63 20 20 20 20 20 20 |<bitnum>|`c |
|00002560| 20 20 20 20 70 72 69 6e | 74 20 73 70 65 63 69 66 | prin|t specif|
|00002570| 69 65 64 20 63 68 61 72 | 20 69 66 66 20 62 69 74 |ied char| iff bit|
|00002580| 20 69 73 20 7a 65 72 6f | 0a 20 20 20 25 3c 62 69 | is zero|. %<bi|
|00002590| 74 6e 75 6d 3e 3f 61 62 | 20 20 20 20 20 20 20 20 |tnum>?ab| |
|000025a0| 20 70 72 69 6e 74 20 61 | 20 69 66 20 62 69 74 20 | print a| if bit |
|000025b0| 69 73 20 6f 6e 65 20 65 | 6c 73 65 20 70 72 69 6e |is one e|lse prin|
|000025c0| 74 20 62 0a 20 20 20 25 | 70 20 20 20 20 20 20 20 |t b. %|p |
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e | | prin|
|000025e0| 74 20 27 70 27 20 69 66 | 66 20 62 69 74 73 20 31 |t 'p' if|f bits 1|
|000025f0| 32 2d 31 35 20 61 72 65 | 20 31 35 0a 20 20 20 25 |2-15 are| 15. %|
|00002600| 6f 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o | |
|00002610| 20 20 20 20 70 72 69 6e | 74 20 6f 70 65 72 61 6e | prin|t operan|
|00002620| 64 32 20 28 69 6d 6d 65 | 64 69 61 74 65 20 6f 72 |d2 (imme|diate or|
|00002630| 20 72 65 67 69 73 74 65 | 72 20 2b 20 73 68 69 66 | registe|r + shif|
|00002640| 74 29 0a 20 20 20 25 61 | 20 20 20 20 20 20 20 20 |t). %a| |
|00002650| 20 20 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 | | print|
|00002660| 20 61 64 64 72 65 73 73 | 20 66 6f 72 20 6c 64 72 | address| for ldr|
|00002670| 2f 73 74 72 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |/str ins|truction|
|00002680| 0a 20 20 20 25 62 20 20 | 20 20 20 20 20 20 20 20 |. %b | |
|00002690| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 62 | | print b|
|000026a0| 72 61 6e 63 68 20 64 65 | 73 74 69 6e 61 74 69 6f |ranch de|stinatio|
|000026b0| 6e 0a 20 20 20 25 41 20 | 20 20 20 20 20 20 20 20 |n. %A | |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 20 | | print |
|000026d0| 61 64 64 72 65 73 73 20 | 66 6f 72 20 6c 64 63 2f |address |for ldc/|
|000026e0| 73 74 63 2f 6c 64 66 2f | 73 74 66 20 69 6e 73 74 |stc/ldf/|stf inst|
|000026f0| 72 75 63 74 69 6f 6e 0a | 20 20 20 25 6d 20 20 20 |ruction.| %m |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002710| 70 72 69 6e 74 20 72 65 | 67 69 73 74 65 72 20 6d |print re|gister m|
|00002720| 61 73 6b 20 66 6f 72 20 | 6c 64 6d 2f 73 74 6d 20 |ask for |ldm/stm |
|00002730| 69 6e 73 74 72 75 63 74 | 69 6f 6e 0a 20 20 20 25 |instruct|ion. %|
|00002740| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s | |
|00002750| 20 20 20 20 70 72 69 6e | 74 20 62 69 74 73 20 30 | prin|t bits 0|
|00002760| 2d 32 33 20 61 73 20 73 | 77 69 20 6e 75 6d 62 65 |-23 as s|wi numbe|
|00002770| 72 2f 6e 61 6d 65 0a 20 | 20 20 25 4c 20 20 20 20 |r/name. | %L |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00002790| 72 69 6e 74 20 6c 64 6d | 20 74 79 70 65 20 28 66 |rint ldm| type (f|
|000027a0| 64 2c 20 65 61 20 61 6e | 64 20 74 68 65 20 6c 69 |d, ea an|d the li|
|000027b0| 6b 65 20 2e 2e 2e 29 0a | 20 20 20 25 53 20 20 20 |ke ...).| %S |
|000027c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027d0| 70 72 69 6e 74 20 73 74 | 6d 20 74 79 70 65 0a 20 |print st|m type. |
|000027e0| 20 20 25 72 20 20 20 20 | 20 20 20 20 20 20 20 20 | %r | |
|000027f0| 20 20 20 20 20 20 20 70 | 72 69 6e 74 20 61 64 72 | p|rint adr|
|00002800| 20 6f 70 65 72 61 6e 64 | 0a 0a 2f 2a 20 41 52 4d | operand|../* ARM|
|00002810| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 2a 2f | instruc|tions */|
|00002820| 0a 0a 22 6d 75 6c 25 63 | 25 32 30 27 73 20 25 31 |.."mul%c|%20's %1|
|00002830| 36 2d 31 39 72 2c 25 30 | 2d 33 72 2c 25 38 2d 31 |6-19r,%0|-3r,%8-1|
|00002840| 31 72 22 2c 0a 22 6d 6c | 61 25 63 25 32 30 27 73 |1r",."ml|a%c%20's|
|00002850| 20 25 31 36 2d 31 39 72 | 2c 25 30 2d 33 72 2c 25 | %16-19r|,%0-3r,%|
|00002860| 38 2d 31 31 72 2c 25 31 | 32 2d 31 35 72 22 2c 0a |8-11r,%1|2-15r",.|
|00002870| 22 61 6e 64 25 63 25 32 | 30 27 73 20 25 31 32 2d |"and%c%2|0's %12-|
|00002880| 31 35 72 2c 25 31 36 2d | 31 39 72 2c 25 6f 22 2c |15r,%16-|19r,%o",|
|00002890| 0a 22 65 6f 72 25 63 25 | 32 30 27 73 20 25 31 32 |."eor%c%|20's %12|
|000028a0| 2d 31 35 72 2c 25 31 36 | 2d 31 39 72 2c 25 6f 22 |-15r,%16|-19r,%o"|
|000028b0| 2c 0a 22 73 75 62 25 63 | 25 32 30 27 73 20 25 31 |,."sub%c|%20's %1|
|000028c0| 32 2d 31 35 72 2c 25 31 | 36 2d 31 39 72 2c 25 6f |2-15r,%1|6-19r,%o|
|000028d0| 22 2c 0a 22 72 73 62 25 | 63 25 32 30 27 73 20 25 |",."rsb%|c%20's %|
|000028e0| 31 32 2d 31 35 72 2c 25 | 31 36 2d 31 39 72 2c 25 |12-15r,%|16-19r,%|
|000028f0| 6f 22 2c 0a 22 61 64 64 | 25 63 25 32 30 27 73 20 |o",."add|%c%20's |
|00002900| 25 31 32 2d 31 35 72 2c | 25 31 36 2d 31 39 72 2c |%12-15r,|%16-19r,|
|00002910| 25 6f 22 2c 0a 22 61 64 | 72 25 63 25 32 30 27 73 |%o",."ad|r%c%20's|
|00002920| 20 25 31 32 2d 31 35 72 | 2c 25 72 22 2c 0a 22 61 | %12-15r|,%r",."a|
|00002930| 64 63 25 63 25 32 30 27 | 73 20 25 31 32 2d 31 35 |dc%c%20'|s %12-15|
|00002940| 72 2c 25 31 36 2d 31 39 | 72 2c 25 6f 22 2c 0a 22 |r,%16-19|r,%o",."|
|00002950| 73 62 63 25 63 25 32 30 | 27 73 20 25 31 32 2d 31 |sbc%c%20|'s %12-1|
|00002960| 35 72 2c 25 31 36 2d 31 | 39 72 2c 25 6f 22 2c 0a |5r,%16-1|9r,%o",.|
|00002970| 22 72 73 63 25 63 25 32 | 30 27 73 20 25 31 32 2d |"rsc%c%2|0's %12-|
|00002980| 31 35 72 2c 25 31 36 2d | 31 39 72 2c 25 6f 22 2c |15r,%16-|19r,%o",|
|00002990| 0a 22 74 73 74 25 63 25 | 70 20 25 31 36 2d 31 39 |."tst%c%|p %16-19|
|000029a0| 72 2c 25 6f 22 2c 0a 22 | 74 65 71 25 63 25 70 20 |r,%o",."|teq%c%p |
|000029b0| 25 31 36 2d 31 39 72 2c | 25 6f 22 2c 0a 22 63 6d |%16-19r,|%o",."cm|
|000029c0| 70 25 63 25 70 20 25 31 | 36 2d 31 39 72 2c 25 6f |p%c%p %1|6-19r,%o|
|000029d0| 22 2c 0a 22 63 6d 6e 25 | 63 25 70 20 25 31 36 2d |",."cmn%|c%p %16-|
|000029e0| 31 39 72 2c 25 6f 22 2c | 0a 22 6f 72 72 25 63 25 |19r,%o",|."orr%c%|
|000029f0| 32 30 27 73 20 25 31 32 | 2d 31 35 72 2c 25 31 36 |20's %12|-15r,%16|
|00002a00| 2d 31 39 72 2c 25 6f 22 | 2c 0a 22 6d 6f 76 25 63 |-19r,%o"|,."mov%c|
|00002a10| 25 32 30 27 73 20 25 31 | 32 2d 31 35 72 2c 25 6f |%20's %1|2-15r,%o|
|00002a20| 22 2c 0a 22 62 69 63 25 | 63 25 32 30 27 73 20 25 |",."bic%|c%20's %|
|00002a30| 31 32 2d 31 35 72 2c 25 | 31 36 2d 31 39 72 2c 25 |12-15r,%|16-19r,%|
|00002a40| 6f 22 2c 0a 22 6d 76 6e | 25 63 25 32 30 27 73 20 |o",."mvn|%c%20's |
|00002a50| 25 31 32 2d 31 35 72 2c | 25 6f 22 2c 0a 22 73 74 |%12-15r,|%o",."st|
|00002a60| 72 25 63 25 32 32 27 62 | 20 25 31 32 2d 31 35 72 |r%c%22'b| %12-15r|
|00002a70| 2c 25 61 22 2c 0a 22 6c | 64 72 25 63 25 32 32 27 |,%a",."l|dr%c%22'|
|00002a80| 62 20 25 31 32 2d 31 35 | 72 2c 25 61 22 2c 0a 22 |b %12-15|r,%a",."|
|00002a90| 73 74 6d 25 63 25 53 20 | 25 31 36 2d 31 39 72 25 |stm%c%S |%16-19r%|
|00002aa0| 32 31 27 21 2c 25 6d 22 | 2c 0a 22 6c 64 6d 25 63 |21'!,%m"|,."ldm%c|
|00002ab0| 25 4c 20 25 31 36 2d 31 | 39 72 25 32 31 27 21 2c |%L %16-1|9r%21'!,|
|00002ac0| 25 6d 25 32 32 27 5e 22 | 2c 0a 22 62 25 32 34 2d |%m%22'^"|,."b%24-|
|00002ad0| 32 27 6c 25 63 25 32 34 | 27 6c 20 25 62 22 2c 0a |2'l%c%24|'l %b",.|
|00002ae0| 22 73 77 69 25 63 20 25 | 73 22 2c 0a 0a 2f 2a 20 |"swi%c %|s",../* |
|00002af0| 46 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 63 |Floating| point c|
|00002b00| 6f 70 72 6f 63 65 73 73 | 6f 72 20 69 6e 73 74 72 |oprocess|or instr|
|00002b10| 75 63 74 69 6f 6e 73 20 | 2a 2f 0a 0a 22 61 64 66 |uctions |*/.."adf|
|00002b20| 25 63 25 50 25 52 20 25 | 31 32 2d 31 34 66 2c 25 |%c%P%R %|12-14f,%|
|00002b30| 31 36 2d 31 38 66 2c 25 | 30 2d 33 66 22 2c 0a 22 |16-18f,%|0-3f",."|
|00002b40| 6d 75 66 25 63 25 50 25 | 52 20 25 31 32 2d 31 34 |muf%c%P%|R %12-14|
|00002b50| 66 2c 25 31 36 2d 31 38 | 66 2c 25 30 2d 33 66 22 |f,%16-18|f,%0-3f"|
|00002b60| 2c 0a 22 73 75 66 25 63 | 25 50 25 52 20 25 31 32 |,."suf%c|%P%R %12|
|00002b70| 2d 31 34 66 2c 25 31 36 | 2d 31 38 66 2c 25 30 2d |-14f,%16|-18f,%0-|
|00002b80| 33 66 22 2c 0a 22 72 73 | 66 25 63 25 50 25 52 20 |3f",."rs|f%c%P%R |
|00002b90| 25 31 32 2d 31 34 66 2c | 25 31 36 2d 31 38 66 2c |%12-14f,|%16-18f,|
|00002ba0| 25 30 2d 33 66 22 2c 0a | 22 64 76 66 25 63 25 50 |%0-3f",.|"dvf%c%P|
|00002bb0| 25 52 20 25 31 32 2d 31 | 34 66 2c 25 31 36 2d 31 |%R %12-1|4f,%16-1|
|00002bc0| 38 66 2c 25 30 2d 33 66 | 22 2c 0a 22 72 64 66 25 |8f,%0-3f|",."rdf%|
|00002bd0| 63 25 50 25 52 20 25 31 | 32 2d 31 34 66 2c 25 31 |c%P%R %1|2-14f,%1|
|00002be0| 36 2d 31 38 66 2c 25 30 | 2d 33 66 22 2c 0a 22 70 |6-18f,%0|-3f",."p|
|00002bf0| 6f 77 25 63 25 50 25 52 | 20 25 31 32 2d 31 34 66 |ow%c%P%R| %12-14f|
|00002c00| 2c 25 31 36 2d 31 38 66 | 2c 25 30 2d 33 66 22 2c |,%16-18f|,%0-3f",|
|00002c10| 0a 22 72 70 77 25 63 25 | 50 25 52 20 25 31 32 2d |."rpw%c%|P%R %12-|
|00002c20| 31 34 66 2c 25 31 36 2d | 31 38 66 2c 25 30 2d 33 |14f,%16-|18f,%0-3|
|00002c30| 66 22 2c 0a 22 72 6d 66 | 25 63 25 50 25 52 20 25 |f",."rmf|%c%P%R %|
|00002c40| 31 32 2d 31 34 66 2c 25 | 31 36 2d 31 38 66 2c 25 |12-14f,%|16-18f,%|
|00002c50| 30 2d 33 66 22 2c 0a 22 | 66 6d 6c 25 63 25 50 25 |0-3f",."|fml%c%P%|
|00002c60| 52 20 25 31 32 2d 31 34 | 66 2c 25 31 36 2d 31 38 |R %12-14|f,%16-18|
|00002c70| 66 2c 25 30 2d 33 66 22 | 2c 0a 22 66 64 76 25 63 |f,%0-3f"|,."fdv%c|
|00002c80| 25 50 25 52 20 25 31 32 | 2d 31 34 66 2c 25 31 36 |%P%R %12|-14f,%16|
|00002c90| 2d 31 38 66 2c 25 30 2d | 33 66 22 2c 0a 22 66 72 |-18f,%0-|3f",."fr|
|00002ca0| 64 25 63 25 50 25 52 20 | 25 31 32 2d 31 34 66 2c |d%c%P%R |%12-14f,|
|00002cb0| 25 31 36 2d 31 38 66 2c | 25 30 2d 33 66 22 2c 0a |%16-18f,|%0-3f",.|
|00002cc0| 22 70 6f 6c 25 63 25 50 | 25 52 20 25 31 32 2d 31 |"pol%c%P|%R %12-1|
|00002cd0| 34 66 2c 25 31 36 2d 31 | 38 66 2c 25 30 2d 33 66 |4f,%16-1|8f,%0-3f|
|00002ce0| 22 2c 0a 22 6d 76 66 25 | 63 25 50 25 52 20 25 31 |",."mvf%|c%P%R %1|
|00002cf0| 32 2d 31 34 66 2c 25 30 | 2d 33 66 22 2c 0a 22 6d |2-14f,%0|-3f",."m|
|00002d00| 6e 66 25 63 25 50 25 52 | 20 25 31 32 2d 31 34 66 |nf%c%P%R| %12-14f|
|00002d10| 2c 25 30 2d 33 66 22 2c | 0a 22 61 62 73 25 63 25 |,%0-3f",|."abs%c%|
|00002d20| 50 25 52 20 25 31 32 2d | 31 34 66 2c 25 30 2d 33 |P%R %12-|14f,%0-3|
|00002d30| 66 22 2c 0a 22 72 6e 64 | 25 63 25 50 25 52 20 25 |f",."rnd|%c%P%R %|
|00002d40| 31 32 2d 31 34 66 2c 25 | 30 2d 33 66 22 2c 0a 22 |12-14f,%|0-3f",."|
|00002d50| 73 71 74 25 63 25 50 25 | 52 20 25 31 32 2d 31 34 |sqt%c%P%|R %12-14|
|00002d60| 66 2c 25 30 2d 33 66 22 | 2c 0a 22 6c 6f 67 25 63 |f,%0-3f"|,."log%c|
|00002d70| 25 50 25 52 20 25 31 32 | 2d 31 34 66 2c 25 30 2d |%P%R %12|-14f,%0-|
|00002d80| 33 66 22 2c 0a 22 6c 67 | 6e 25 63 25 50 25 52 20 |3f",."lg|n%c%P%R |
|00002d90| 25 31 32 2d 31 34 66 2c | 25 30 2d 33 66 22 2c 0a |%12-14f,|%0-3f",.|
|00002da0| 22 65 78 70 25 63 25 50 | 25 52 20 25 31 32 2d 31 |"exp%c%P|%R %12-1|
|00002db0| 34 66 2c 25 30 2d 33 66 | 22 2c 0a 22 73 69 6e 25 |4f,%0-3f|",."sin%|
|00002dc0| 63 25 50 25 52 20 25 31 | 32 2d 31 34 66 2c 25 30 |c%P%R %1|2-14f,%0|
|00002dd0| 2d 33 66 22 2c 0a 22 63 | 6f 73 25 63 25 50 25 52 |-3f",."c|os%c%P%R|
|00002de0| 20 25 31 32 2d 31 34 66 | 2c 25 30 2d 33 66 22 2c | %12-14f|,%0-3f",|
|00002df0| 0a 22 74 61 6e 25 63 25 | 50 25 52 20 25 31 32 2d |."tan%c%|P%R %12-|
|00002e00| 31 34 66 2c 25 30 2d 33 | 66 22 2c 0a 22 61 73 6e |14f,%0-3|f",."asn|
|00002e10| 25 63 25 50 25 52 20 25 | 31 32 2d 31 34 66 2c 25 |%c%P%R %|12-14f,%|
|00002e20| 30 2d 33 66 22 2c 0a 22 | 61 63 73 25 63 25 50 25 |0-3f",."|acs%c%P%|
|00002e30| 52 20 25 31 32 2d 31 34 | 66 2c 25 30 2d 33 66 22 |R %12-14|f,%0-3f"|
|00002e40| 2c 0a 22 61 74 6e 25 63 | 25 50 25 52 20 25 31 32 |,."atn%c|%P%R %12|
|00002e50| 2d 31 34 66 2c 25 30 2d | 33 66 22 2c 0a 22 66 6c |-14f,%0-|3f",."fl|
|00002e60| 74 25 63 25 50 25 52 20 | 25 31 36 2d 31 38 66 2c |t%c%P%R |%16-18f,|
|00002e70| 25 31 32 2d 31 35 72 22 | 2c 0a 22 66 69 78 25 63 |%12-15r"|,."fix%c|
|00002e80| 25 50 25 52 20 25 31 32 | 2d 31 35 72 2c 25 30 2d |%P%R %12|-15r,%0-|
|00002e90| 32 66 22 2c 0a 22 77 66 | 73 25 63 20 25 31 32 2d |2f",."wf|s%c %12-|
|00002ea0| 31 35 72 22 2c 0a 22 72 | 66 73 25 63 20 25 31 32 |15r",."r|fs%c %12|
|00002eb0| 2d 31 35 72 22 2c 0a 22 | 77 66 63 25 63 20 25 31 |-15r",."|wfc%c %1|
|00002ec0| 32 2d 31 35 72 22 2c 0a | 22 72 66 63 25 63 20 25 |2-15r",.|"rfc%c %|
|00002ed0| 31 32 2d 31 35 72 22 2c | 0a 22 63 6d 66 25 63 20 |12-15r",|."cmf%c |
|00002ee0| 25 31 36 2d 31 38 66 2c | 25 30 2d 33 66 22 2c 0a |%16-18f,|%0-3f",.|
|00002ef0| 22 63 6e 66 25 63 20 25 | 31 36 2d 31 38 66 2c 25 |"cnf%c %|16-18f,%|
|00002f00| 30 2d 33 66 22 2c 0a 22 | 63 6d 66 65 25 63 20 25 |0-3f",."|cmfe%c %|
|00002f10| 31 36 2d 31 38 66 2c 25 | 30 2d 33 66 22 2c 0a 22 |16-18f,%|0-3f",."|
|00002f20| 63 6e 66 65 25 63 20 25 | 31 36 2d 31 38 66 2c 25 |cnfe%c %|16-18f,%|
|00002f30| 30 2d 33 66 22 2c 0a 22 | 73 74 66 25 63 25 51 20 |0-3f",."|stf%c%Q |
|00002f40| 25 31 32 2d 31 34 66 2c | 25 41 22 2c 0a 22 6c 64 |%12-14f,|%A",."ld|
|00002f50| 66 25 63 25 51 20 25 31 | 32 2d 31 34 66 2c 25 41 |f%c%Q %1|2-14f,%A|
|00002f60| 22 2c 0a 0a 36 2e 20 53 | 74 75 62 73 20 2f 20 52 |",..6. S|tubs / R|
|00002f70| 49 53 43 5f 4f 53 6c 69 | 62 0a 20 20 20 2d 2d 2d |ISC_OSli|b. ---|
|00002f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00002f90| 0a 57 69 74 68 20 74 68 | 65 20 47 4e 55 20 43 2f |.With th|e GNU C/|
|00002fa0| 43 2b 2b 20 63 6f 6d 70 | 69 6c 65 72 2c 20 79 6f |C++ comp|iler, yo|
|00002fb0| 75 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 61 6c |u should| have al|
|00002fc0| 73 6f 20 74 68 65 20 63 | 6f 6e 76 65 72 74 65 64 |so the c|onverted|
|00002fd0| 20 76 65 72 73 69 6f 6e | 73 0a 6f 66 20 53 74 75 | version|s.of Stu|
|00002fe0| 62 73 20 61 6e 64 20 52 | 49 53 43 5f 4f 53 6c 69 |bs and R|ISC_OSli|
|00002ff0| 62 20 28 73 74 75 62 73 | 6d 75 20 61 6e 64 20 6f |b (stubs|mu and o|
|00003000| 73 6c 69 62 5f 6d 75 20 | 69 6e 20 74 68 65 20 64 |slib_mu |in the d|
|00003010| 69 72 65 63 74 6f 72 79 | 20 72 69 73 63 6c 69 62 |irectory| risclib|
|00003020| 29 2e 0a 49 66 20 74 68 | 69 73 20 69 73 20 6e 6f |)..If th|is is no|
|00003030| 74 20 74 68 65 20 63 61 | 73 65 2c 20 79 6f 75 20 |t the ca|se, you |
|00003040| 63 61 6e 20 67 65 6e 65 | 72 61 74 65 20 74 68 65 |can gene|rate the|
|00003050| 73 65 20 6c 69 62 72 61 | 72 69 65 73 20 62 79 20 |se libra|ries by |
|00003060| 65 78 65 63 75 74 69 6e | 67 0a 74 68 65 20 4f 62 |executin|g.the Ob|
|00003070| 65 79 20 66 69 6c 65 20 | 72 69 73 63 6c 69 62 2e |ey file |risclib.|
|00003080| 6d 61 6b 65 6c 69 62 73 | 2e 0a 0a 41 67 61 69 6e |makelibs|...Again|
|00003090| 3a 20 6c 69 6e 6b 20 53 | 74 75 62 73 20 61 6c 77 |: link S|tubs alw|
|000030a0| 61 79 73 20 62 65 66 6f | 72 65 20 52 49 53 43 5f |ays befo|re RISC_|
|000030b0| 4f 53 6c 69 62 2e 0a 0a | 37 2e 20 59 6f 75 72 20 |OSlib...|7. Your |
|000030c0| 6f 77 6e 20 6c 69 62 72 | 61 72 69 65 73 0a 20 20 |own libr|aries. |
|000030d0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|000030e0| 2d 2d 2d 0a 0a 4c 69 62 | 72 61 72 69 65 73 20 61 |---..Lib|raries a|
|000030f0| 72 65 20 63 6f 6e 73 74 | 72 75 63 74 65 64 20 61 |re const|ructed a|
|00003100| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0a 0a 20 20 31 2e |s follow|s:.. 1.|
|00003110| 20 63 6f 6d 70 69 6c 65 | 20 73 69 6e 67 6c 65 20 | compile| single |
|00003120| 6d 6f 64 75 6c 65 73 0a | 20 20 32 2e 20 70 75 74 |modules.| 2. put|
|00003130| 20 74 68 65 20 6f 62 6a | 65 63 74 73 20 69 6e 20 | the obj|ects in |
|00003140| 6f 6e 65 20 66 69 6c 65 | 20 28 65 2e 67 2e 20 75 |one file| (e.g. u|
|00003150| 73 69 6e 67 20 66 61 70 | 70 65 6e 64 29 0a 0a 42 |sing fap|pend)..B|
|00003160| 54 57 3a 0a 0a 20 20 6d | 75 6c 69 6e 6b 20 2e 2e |TW:.. m|ulink ..|
|00003170| 2e 2e 20 6f 2e 73 61 6d | 70 6c 65 31 20 6f 2e 73 |.. o.sam|ple1 o.s|
|00003180| 61 6d 70 6c 65 32 0a 0a | 69 73 20 65 78 61 63 74 |ample2..|is exact|
|00003190| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 61 73 3a 0a |ly the s|ame as:.|
|000031a0| 0a 20 20 66 61 70 70 65 | 6e 64 20 6f 2e 73 61 6d |. fappe|nd o.sam|
|000031b0| 70 6c 65 31 20 6f 2e 73 | 61 6d 70 6c 65 32 0a 20 |ple1 o.s|ample2. |
|000031c0| 20 6d 75 6c 69 6e 6b 20 | 2e 2e 2e 2e 20 6f 2e 73 | mulink |.... o.s|
|000031d0| 61 6d 70 6c 65 31 0a 20 | 20 20 20 20 20 20 20 20 |ample1. | |
|000031e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 4e 6f 74 | | .Not|
|000031f0| 65 3a 20 69 66 20 73 6f | 6d 65 6f 6e 65 20 68 61 |e: if so|meone ha|
|00003200| 73 20 77 72 69 74 74 65 | 6e 20 61 20 6e 75 6d 62 |s writte|n a numb|
|00003210| 65 72 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 73 20 |er of fu|nctions |
|00003220| 6f 72 20 63 6c 61 73 73 | 65 73 2c 20 77 68 69 63 |or class|es, whic|
|00003230| 68 20 0a 61 72 65 20 76 | 65 72 79 20 69 6e 74 65 |h .are v|ery inte|
|00003240| 72 65 73 74 69 6e 67 3a | 20 50 4c 45 41 53 45 20 |resting:| PLEASE |
|00003250| 6c 65 74 20 61 6c 73 6f | 20 6f 74 68 65 72 20 70 |let also| other p|
|00003260| 65 6f 70 6c 65 20 75 73 | 65 20 74 68 65 6d 2e 20 |eople us|e them. |
|00003270| 49 66 20 74 68 69 73 20 | 69 73 0a 74 68 65 20 63 |If this |is.the c|
|00003280| 61 73 65 2c 20 63 6f 6e | 74 61 63 74 20 6d 65 2e |ase, con|tact me.|
|00003290| 20 49 20 77 69 6c 6c 20 | 74 72 79 20 74 6f 20 64 | I will |try to d|
|000032a0| 69 73 74 72 69 62 75 74 | 65 20 74 68 65 6d 2e 20 |istribut|e them. |
|000032b0| 49 20 68 6f 70 65 2c 20 | 6f 74 68 65 72 20 70 65 |I hope, |other pe|
|000032c0| 6f 70 6c 65 0a 77 69 6c | 6c 20 72 65 73 70 6f 6e |ople.wil|l respon|
|000032d0| 64 2e 20 0a 0a 38 2e 20 | 4f 62 6a 65 63 74 69 76 |d. ..8. |Objectiv|
|000032e0| 65 20 43 0a 20 20 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |e C. -|--------|
|000032f0| 2d 2d 0a 0a 54 68 65 20 | 63 75 72 72 65 6e 74 20 |--..The |current |
|00003300| 52 49 53 43 20 4f 53 20 | 76 65 72 73 69 6f 6e 20 |RISC OS |version |
|00003310| 6f 66 20 47 4e 55 20 43 | 2f 43 2b 2b 20 64 6f 65 |of GNU C|/C++ doe|
|00003320| 73 20 6e 6f 74 20 73 75 | 70 70 6f 72 74 20 6f 62 |s not su|pport ob|
|00003330| 6a 65 63 74 69 76 65 20 | 43 2e 0a 49 66 20 79 6f |jective |C..If yo|
|00003340| 75 20 68 61 76 65 20 61 | 20 6e 65 65 64 20 66 6f |u have a| need fo|
|00003350| 72 20 74 68 69 73 2c 20 | 70 6c 65 61 73 65 20 63 |r this, |please c|
|00003360| 6f 6e 74 61 63 74 20 6d | 65 2e 0a 0a 39 2e 20 22 |ontact m|e...9. "|
|00003370| 53 75 70 70 6f 72 74 22 | 0a 20 20 20 2d 2d 2d 2d |Support"|. ----|
|00003380| 2d 2d 2d 2d 2d 0a 20 20 | 20 20 20 20 20 20 20 20 |-----. | |
|00003390| 20 20 20 20 20 0a 49 6e | 20 6d 61 6e 79 20 6d 61 | .In| many ma|
|000033a0| 69 6c 62 6f 78 65 73 20 | 79 6f 75 20 77 69 6c 6c |ilboxes |you will|
|000033b0| 20 66 69 6e 64 20 64 69 | 73 63 75 73 73 69 6f 6e | find di|scussion|
|000033c0| 73 20 61 62 6f 75 74 20 | 47 4e 55 20 43 2f 43 2b |s about |GNU C/C+|
|000033d0| 2b 2e 20 49 66 20 79 6f | 75 0a 68 61 76 65 20 61 |+. If yo|u.have a|
|000033e0| 63 63 65 73 73 20 74 6f | 20 49 6e 74 65 72 6e 65 |ccess to| Interne|
|000033f0| 74 2c 20 66 6f 72 20 69 | 6e 73 74 61 6e 63 65 20 |t, for i|nstance |
|00003400| 55 55 43 50 2d 4e 65 77 | 73 2c 20 79 6f 75 20 63 |UUCP-New|s, you c|
|00003410| 61 6e 20 72 65 61 64 20 | 74 68 65 20 6e 65 77 73 |an read |the news|
|00003420| 67 72 6f 75 70 0a 67 6e | 75 2e 67 2b 2b 2e 2e 2e |group.gn|u.g++...|
|00003430| 20 46 6f 72 20 52 49 53 | 43 20 4f 53 20 73 70 65 | For RIS|C OS spe|
|00003440| 63 69 66 69 63 20 70 72 | 6f 62 6c 65 6d 73 20 49 |cific pr|oblems I|
|00003450| 20 63 61 6e 20 62 65 20 | 63 6f 6e 74 61 63 74 65 | can be |contacte|
|00003460| 64 20 61 74 3a 0a 0a 54 | 68 6f 6d 61 73 20 41 65 |d at:..T|homas Ae|
|00003470| 62 79 0a 47 72 61 65 66 | 66 65 74 20 34 30 36 0a |by.Graef|fet 406.|
|00003480| 31 37 33 35 20 47 69 66 | 66 65 72 73 0a 53 63 68 |1735 Gif|fers.Sch|
|00003490| 77 65 69 7a 0a 54 65 6c | 2e 20 30 33 37 20 33 38 |weiz.Tel|. 037 38|
|000034a0| 20 31 36 20 30 30 0a 45 | 4d 61 69 6c 20 61 65 62 | 16 00.E|Mail aeb|
|000034b0| 79 40 75 72 6f 70 61 78 | 2e 63 6f 6e 74 72 69 62 |y@uropax|.contrib|
|000034c0| 2e 64 65 0a 0a 31 30 2e | 20 53 6f 75 72 63 65 20 |.de..10.| Source |
|000034d0| 63 6f 64 65 0a 20 20 20 | 20 2d 2d 2d 2d 2d 2d 2d |code. | -------|
|000034e0| 2d 2d 2d 2d 0a 0a 41 6c | 6c 20 73 6f 75 72 63 65 |----..Al|l source|
|000034f0| 20 63 6f 64 65 20 6f 66 | 20 74 68 65 20 63 6f 6d | code of| the com|
|00003500| 70 69 6c 65 72 20 61 6e | 64 20 74 68 65 20 61 73 |piler an|d the as|
|00003510| 73 65 6d 62 6c 65 72 20 | 61 72 65 20 61 76 61 69 |sembler |are avai|
|00003520| 6c 61 62 6c 65 20 66 72 | 6f 6d 0a 74 68 65 20 61 |lable fr|om.the a|
|00003530| 64 64 72 65 73 73 20 61 | 62 6f 76 65 2e 0a 0a 31 |ddress a|bove...1|
|00003540| 31 2e 20 46 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |1. Float|ing poin|
|00003550| 74 20 61 72 69 74 68 6d | 65 74 69 63 0a 20 20 20 |t arithm|etic. |
|00003560| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00003570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 46 6c 6f 61 |--------|--..Floa|
|00003580| 74 69 6e 67 20 70 6f 69 | 6e 74 20 61 72 69 74 68 |ting poi|nt arith|
|00003590| 6d 65 74 69 63 20 63 61 | 6e 20 62 65 20 75 73 65 |metic ca|n be use|
|000035a0| 64 2e 20 48 6f 77 65 76 | 65 72 2c 20 69 73 20 6e |d. Howev|er, is n|
|000035b0| 6f 74 20 76 65 72 79 20 | 77 65 6c 6c 20 74 65 73 |ot very |well tes|
|000035c0| 74 65 64 2e 0a 0a 31 32 | 2e 20 4d 65 6d 6f 72 79 |ted...12|. Memory|
|000035d0| 0a 20 20 20 20 2d 2d 2d | 2d 2d 2d 0a 0a 49 6e 20 |. ---|---..In |
|000035e0| 6f 72 64 65 72 20 74 6f | 20 63 6f 6d 70 69 6c 65 |order to| compile|
|000035f0| 20 43 2b 2b 20 70 72 6f | 67 72 61 6d 73 2c 20 79 | C++ pro|grams, y|
|00003600| 6f 75 20 77 69 6c 6c 20 | 6e 65 65 64 20 6d 6f 72 |ou will |need mor|
|00003610| 65 20 74 68 61 6e 20 32 | 4d 62 20 66 72 65 65 20 |e than 2|Mb free |
|00003620| 6d 65 6d 6f 72 79 0a 28 | 74 61 73 6b 20 73 6c 6f |memory.(|task slo|
|00003630| 74 29 2e 20 53 74 61 6e | 64 61 72 64 20 43 20 75 |t). Stan|dard C u|
|00003640| 73 65 73 20 6c 65 73 73 | 20 6d 65 6d 6f 72 79 2c |ses less| memory,|
|00003650| 20 62 75 74 20 79 6f 75 | 20 77 69 6c 6c 20 73 74 | but you| will st|
|00003660| 69 6c 6c 20 6e 65 65 64 | 20 61 62 6f 75 74 0a 31 |ill need| about.1|
|00003670| 2d 31 2e 32 20 4d 62 2e | 20 45 72 72 6f 72 20 6d |-1.2 Mb.| Error m|
|00003680| 65 73 73 61 67 65 73 20 | 6c 69 6b 65 20 27 76 69 |essages |like 'vi|
|00003690| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 65 78 68 |rtual me|mory exh|
|000036a0| 61 75 73 74 65 64 27 20 | 6d 65 61 6e 20 6c 61 63 |austed' |mean lac|
|000036b0| 6b 20 6f 66 0a 6d 65 6d | 6f 72 79 2e 0a 0a 4e 4f |k of.mem|ory...NO|
|000036c0| 54 45 3a 20 67 63 63 20 | 77 69 6c 6c 20 6e 6f 74 |TE: gcc |will not|
|000036d0| 20 77 6f 72 6b 20 75 6e | 64 65 72 20 56 69 72 74 | work un|der Virt|
|000036e0| 75 61 6c 20 28 62 79 20 | 4e 69 63 6b 20 53 6d 69 |ual (by |Nick Smi|
|000036f0| 74 68 29 2c 20 62 65 63 | 61 75 73 65 20 67 63 63 |th), bec|ause gcc|
|00003700| 0a 63 61 6c 6c 73 20 74 | 68 65 20 70 72 65 70 72 |.calls t|he prepr|
|00003710| 6f 63 65 73 73 6f 72 20 | 61 6e 64 20 74 68 65 20 |ocessor |and the |
|00003720| 27 72 65 61 6c 27 20 63 | 6f 6d 70 69 6c 65 72 20 |'real' c|ompiler |
|00003730| 75 73 69 6e 67 20 74 68 | 65 20 27 73 79 73 74 65 |using th|e 'syste|
|00003740| 6d 27 20 63 61 6c 6c 2e | 0a 41 20 73 6f 6c 75 74 |m' call.|.A solut|
|00003750| 69 6f 6e 20 69 73 20 6f | 6e 20 69 74 73 20 77 61 |ion is o|n its wa|
|00003760| 79 2e 0a 0a 31 33 2e 20 | 44 65 62 75 67 67 65 72 |y...13. |Debugger|
|00003770| 0a 20 20 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 53 |. ---|-----..S|
|00003780| 6f 72 72 79 2c 20 69 73 | 20 6e 6f 74 20 73 75 70 |orry, is| not sup|
|00003790| 70 6f 72 74 65 64 2e 20 | 4f 6e 20 61 73 73 65 6d |ported. |On assem|
|000037a0| 62 6c 65 72 20 6c 65 76 | 65 6c 2c 20 79 6f 75 20 |bler lev|el, you |
|000037b0| 63 61 6e 20 28 6f 66 20 | 63 6f 75 72 73 65 29 20 |can (of |course) |
|000037c0| 6d 61 6b 65 20 75 73 65 | 0a 6f 66 20 62 6f 74 68 |make use|.of both|
|000037d0| 20 21 44 44 54 20 61 6e | 64 20 44 65 62 75 67 2e | !DDT an|d Debug.|
|000037e0| 20 53 6f 75 72 63 65 2d | 4c 65 76 65 6c 2d 44 65 | Source-|Level-De|
|000037f0| 62 75 67 67 69 6e 67 27 | 20 69 73 20 6e 6f 74 20 |bugging'| is not |
|00003800| 73 75 70 70 6f 72 74 65 | 64 2e 0a 0a 0a 0a |supporte|d..... |
+--------+-------------------------+-------------------------+--------+--------+