systems.pas 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566
  1. {
  2. $Id$
  3. Copyright (C) 1995,97 by Florian Klaempfl
  4. This unit contains information about the target systems supported
  5. (these are not processor specific)
  6. This progsam is free software; you can redistribute it and/or modify
  7. iu under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge- MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit systems;
  20. interface
  21. type
  22. tendian = (endian_little,endian_big);
  23. ttargetcpu=(no_cpu
  24. ,i386,m68k,alpha
  25. );
  26. tprocessors = (no_processor
  27. ,Class386,ClassP5,ClassP6
  28. ,MC68000,MC68100,MC68020
  29. );
  30. type
  31. tasmmode= (asmmode_none
  32. ,asmmode_i386_direct,asmmode_i386_att,asmmode_i386_intel
  33. ,asmmode_m68k_mot
  34. );
  35. const
  36. {$ifdef i386} i386asmmodecnt=3; {$else} i386asmmodecnt=0; {$endif}
  37. {$ifdef m68k} m68kasmmodecnt=1; {$else} m68kasmmodecnt=0; {$endif}
  38. asmmodecnt=i386asmmodecnt+m68kasmmodecnt+1;
  39. type
  40. ttarget = (target_none
  41. ,target_i386_GO32V1,target_i386_GO32V2,target_i386_linux,
  42. target_i386_OS2,target_i386_Win32
  43. ,target_m68k_Amiga,target_m68k_Atari,target_m68k_Mac,
  44. target_m68k_linux,target_m68k_PalmOS
  45. );
  46. ttargetflags = (tf_needs_isconsole,tf_supports_stack_checking);
  47. const
  48. {$ifdef i386} i386targetcnt=5; {$else} i386targetcnt=0; {$endif}
  49. {$ifdef m68k} m68ktargetcnt=5; {$else} m68ktargetcnt=0; {$endif}
  50. targetcnt=i386targetcnt+m68ktargetcnt+1;
  51. type
  52. tasm = (as_none
  53. ,as_i386_o,as_i386_o_aout,as_i386_asw,
  54. as_i386_nasmcoff,as_i386_nasmelf,as_i386_nasmobj,
  55. as_i386_tasm,as_i386_masm,
  56. as_i386_coff
  57. ,as_m68k_o,as_m68k_gas,as_m68k_mit,as_m68k_mot,as_m68k_mpw
  58. );
  59. const
  60. {$ifdef i386} i386asmcnt=9; {$else} i386asmcnt=0; {$endif}
  61. {$ifdef m68k} m68kasmcnt=5; {$else} m68kasmcnt=0; {$endif}
  62. asmcnt=i386asmcnt+m68kasmcnt+1;
  63. type
  64. tlink = (link_none
  65. ,link_i386_ld,link_i386_ldgo32v1,
  66. link_i386_ldgo32v2,link_i386_ldw,
  67. link_i386_ldos2
  68. ,link_m68k_ld
  69. );
  70. const
  71. {$ifdef i386} i386linkcnt=5; {$else} i386linkcnt=0; {$endif}
  72. {$ifdef m68k} m68klinkcnt=1; {$else} m68klinkcnt=0; {$endif}
  73. linkcnt=i386linkcnt+m68klinkcnt+1;
  74. type
  75. tar = (ar_none
  76. ,ar_i386_ar,ar_i386_arw
  77. ,ar_m68k_ar
  78. );
  79. const
  80. {$ifdef i386} i386arcnt=2; {$else} i386arcnt=0; {$endif}
  81. {$ifdef m68k} m68karcnt=1; {$else} m68karcnt=0; {$endif}
  82. arcnt=i386arcnt+m68karcnt+1;
  83. type
  84. tres = (res_none
  85. ,res_i386_windres
  86. );
  87. const
  88. {$ifdef i386} i386rescnt=1; {$else} i386rescnt=0; {$endif}
  89. {$ifdef m68k} m68krescnt=0; {$else} m68krescnt=0; {$endif}
  90. rescnt=i386rescnt+m68krescnt+1;
  91. type
  92. tos = ( os_none,
  93. os_i386_GO32V1,os_i386_GO32V2,os_i386_Linux,os_i386_OS2,
  94. os_i386_Win32,
  95. os_m68k_Amiga,os_m68k_Atari,os_m68k_Mac,os_m68k_Linux,
  96. os_m68k_PalmOS
  97. );
  98. const
  99. i386oscnt=5;
  100. m68koscnt=5;
  101. oscnt=i386oscnt+m68koscnt+1;
  102. type
  103. tosinfo = packed record
  104. id : tos;
  105. name : string[30];
  106. shortname : string[8];
  107. sharedlibext,
  108. staticlibext,
  109. sourceext,
  110. pasext,
  111. exeext,
  112. scriptext : string[4];
  113. libprefix : string[3];
  114. Cprefix : string[2];
  115. newline : string[2];
  116. endian : tendian;
  117. stackalignment : {longint this is a little overkill no ?? }byte;
  118. size_of_pointer : byte;
  119. size_of_longint : byte;
  120. use_bound_instruction : boolean;
  121. use_function_relative_addresses : boolean;
  122. end;
  123. tasminfo = packed record
  124. id : tasm;
  125. idtxt : string[8];
  126. asmbin : string[8];
  127. asmcmd : string[50];
  128. externals : boolean;
  129. labelprefix : string[2];
  130. comment : string[2];
  131. end;
  132. tlinkinfo = packed record
  133. id : tlink;
  134. linkbin : string[8];
  135. linkcmd : string[127];
  136. binders : word;
  137. bindbin : array[1..2]of string[8];
  138. bindcmd : array[1..2]of string[127];
  139. stripopt : string[2];
  140. libpathprefix : string[13];
  141. libpathsuffix : string[2];
  142. groupstart : string[8];
  143. groupend : string[2];
  144. inputstart : string[8];
  145. inputend : string[2];
  146. libprefix : string[2];
  147. end;
  148. tarinfo = packed record
  149. id : tar;
  150. arbin : string[8];
  151. arcmd : string[50];
  152. end;
  153. tresinfo = packed record
  154. id : tres;
  155. resbin : string[8];
  156. rescmd : string[50];
  157. end;
  158. ttargetinfo = packed record
  159. target : ttarget;
  160. flags : set of ttargetflags;
  161. cpu : ttargetcpu;
  162. short_name : string[8];
  163. unit_env : string[12];
  164. system_unit : string[8];
  165. smartext,
  166. unitext,
  167. unitlibext,
  168. asmext,
  169. objext,
  170. resext,
  171. resobjext,
  172. exeext : string[4];
  173. os : tos;
  174. link : tlink;
  175. assem : tasm;
  176. ar : tar;
  177. res : tres;
  178. heapsize,
  179. maxheapsize,
  180. stacksize : longint;
  181. end;
  182. tasmmodeinfo=packed record
  183. id : tasmmode;
  184. idtxt : string[8];
  185. end;
  186. var
  187. target_cpu : ttargetcpu;
  188. target_info : ttargetinfo;
  189. target_os : tosinfo;
  190. target_asm : tasminfo;
  191. target_link : tlinkinfo;
  192. target_ar : tarinfo;
  193. target_res : tresinfo;
  194. source_os : tosinfo;
  195. function set_string_target(s : string) : boolean;
  196. function set_string_asm(s : string) : boolean;
  197. function set_string_asmmode(s:string;var t:tasmmode):boolean;
  198. implementation
  199. const
  200. {****************************************************************************
  201. OS Info
  202. ****************************************************************************}
  203. os_infos : array[1..oscnt] of tosinfo = (
  204. (
  205. id : os_none;
  206. name : 'No operating system';
  207. shortname : 'none'
  208. ),
  209. (
  210. id : os_i386_go32v1;
  211. name : 'GO32 V1 DOS extender';
  212. shortname : 'go32v1';
  213. sharedlibext : '.dll';
  214. staticlibext : '.a';
  215. sourceext : '.pp';
  216. pasext : '.pas';
  217. exeext : ''; { No .exe, the linker only output a.out ! }
  218. scriptext : '.bat';
  219. libprefix : '';
  220. Cprefix : '_';
  221. newline : #13#10;
  222. endian : endian_little;
  223. stackalignment : 2;
  224. size_of_pointer : 4;
  225. size_of_longint : 4;
  226. use_bound_instruction : false;
  227. use_function_relative_addresses : true
  228. ),
  229. (
  230. id : os_i386_go32v2;
  231. name : 'GO32 V2 DOS extender';
  232. shortname : 'go32v2';
  233. sharedlibext : '.dll';
  234. staticlibext : '.a';
  235. sourceext : '.pp';
  236. pasext : '.pas';
  237. exeext : '.exe';
  238. scriptext : '.bat';
  239. libprefix : '';
  240. Cprefix : '_';
  241. newline : #13#10;
  242. endian : endian_little;
  243. stackalignment : 2;
  244. size_of_pointer : 4;
  245. size_of_longint : 4;
  246. use_bound_instruction : true;
  247. use_function_relative_addresses : true
  248. ),
  249. (
  250. id : os_i386_linux;
  251. name : 'Linux for i386';
  252. shortname : 'linux';
  253. sharedlibext : '.so';
  254. staticlibext : '.a';
  255. sourceext : '.pp';
  256. pasext : '.pas';
  257. exeext : '';
  258. scriptext : '.sh';
  259. libprefix : 'lib';
  260. Cprefix : '';
  261. newline : #10;
  262. endian : endian_little;
  263. stackalignment : 4;
  264. size_of_pointer : 4;
  265. size_of_longint : 4;
  266. use_bound_instruction : false;
  267. use_function_relative_addresses : true
  268. ),
  269. (
  270. id : os_i386_os2;
  271. name : 'OS/2 via EMX';
  272. shortname : 'os2';
  273. sharedlibext : '.ao2';
  274. staticlibext : '.ao2';
  275. sourceext : '.pas';
  276. pasext : '.pp';
  277. exeext : '.exe';
  278. scriptext : '.cmd';
  279. libprefix : '';
  280. Cprefix : '_';
  281. newline : #13#10;
  282. endian : endian_little;
  283. stackalignment : 2;
  284. size_of_pointer : 4;
  285. size_of_longint : 4;
  286. use_bound_instruction : false;
  287. use_function_relative_addresses : false
  288. ),
  289. (
  290. id : os_i386_win32;
  291. name : 'Win32 for i386';
  292. shortname : 'win32';
  293. sharedlibext : '.dll';
  294. staticlibext : '.aw';
  295. sourceext : '.pp';
  296. pasext : '.pas';
  297. exeext : '.exe';
  298. scriptext : '.bat';
  299. libprefix : 'lib';
  300. Cprefix : '_';
  301. newline : #13#10;
  302. endian : endian_little;
  303. stackalignment : 4;
  304. size_of_pointer : 4;
  305. size_of_longint : 4;
  306. use_bound_instruction : true;
  307. use_function_relative_addresses : true
  308. ),
  309. (
  310. id : os_m68k_amiga;
  311. name : 'Commodore Amiga';
  312. shortname : 'amiga';
  313. sharedlibext : '.library';
  314. staticlibext : '.a';
  315. sourceext : '.pp';
  316. pasext : '.pas';
  317. exeext : '';
  318. scriptext : '';
  319. libprefix : '';
  320. Cprefix : '_';
  321. newline : #10;
  322. endian : endian_big;
  323. stackalignment : 2;
  324. size_of_pointer : 4;
  325. size_of_longint : 4;
  326. use_bound_instruction : false;
  327. use_function_relative_addresses : false
  328. ),
  329. (
  330. id : os_m68k_atari;
  331. name : 'Atari ST/STE';
  332. shortname : 'atari';
  333. sharedlibext : '.dll';
  334. staticlibext : '.a';
  335. sourceext : '.pp';
  336. pasext : '.pas';
  337. exeext : '.tpp';
  338. scriptext : '';
  339. libprefix : '';
  340. Cprefix : '_';
  341. newline : #10;
  342. endian : endian_big;
  343. stackalignment : 2;
  344. size_of_pointer : 4;
  345. size_of_longint : 4;
  346. use_bound_instruction : false;
  347. use_function_relative_addresses : false
  348. ),
  349. (
  350. id : os_m68k_mac;
  351. name : 'Macintosh m68k';
  352. shortname : 'mac';
  353. sharedlibext : '.dll';
  354. staticlibext : '.a';
  355. sourceext : '.pp';
  356. pasext : '.pas';
  357. exeext : '.tpp';
  358. scriptext : '';
  359. libprefix : '';
  360. Cprefix : '_';
  361. newline : #13;
  362. endian : endian_big;
  363. stackalignment : 2;
  364. size_of_pointer : 4;
  365. size_of_longint : 4;
  366. use_bound_instruction : false;
  367. use_function_relative_addresses : false
  368. ),
  369. (
  370. id : os_m68k_linux;
  371. name : 'Linux for m68k';
  372. shortname : 'linux';
  373. sharedlibext : '.so';
  374. staticlibext : '.a';
  375. sourceext : '.pp';
  376. pasext : '.pas';
  377. exeext : '';
  378. scriptext : '.sh';
  379. libprefix : 'lib';
  380. Cprefix : '';
  381. newline : #10;
  382. endian : endian_big;
  383. stackalignment : 2;
  384. size_of_pointer : 4;
  385. size_of_longint : 4;
  386. use_bound_instruction : false;
  387. use_function_relative_addresses : true
  388. ),
  389. (
  390. id : os_m68k_palmos;
  391. name : 'PalmOS';
  392. shortname : 'palmos';
  393. sharedlibext : '.so';
  394. staticlibext : '.a';
  395. sourceext : '.pp';
  396. pasext : '.pas';
  397. exeext : '';
  398. scriptext : '.sh';
  399. libprefix : 'lib';
  400. Cprefix : '_';
  401. newline : #10;
  402. endian : endian_big;
  403. stackalignment : 2;
  404. size_of_pointer : 4;
  405. size_of_longint : 4;
  406. use_bound_instruction : false;
  407. use_function_relative_addresses : false
  408. )
  409. );
  410. {****************************************************************************
  411. Assembler Info
  412. ****************************************************************************}
  413. as_infos : array[1..asmcnt] of tasminfo = (
  414. (
  415. id : as_none;
  416. idtxt : 'no'
  417. )
  418. {$ifdef i386}
  419. ,(
  420. id : as_i386_o;
  421. idtxt : 'O';
  422. asmbin : 'as';
  423. asmcmd : '-o $OBJ $ASM';
  424. externals : false;
  425. labelprefix : '.L';
  426. comment : '# '
  427. )
  428. ,(
  429. id : as_i386_o_aout;
  430. idtxt : 'O_AOUT';
  431. asmbin : 'as';
  432. asmcmd : '-o $OBJ $ASM';
  433. externals : false;
  434. labelprefix : 'L';
  435. comment : '# '
  436. )
  437. ,(
  438. id : as_i386_asw;
  439. idtxt : 'ASW';
  440. asmbin : 'asw';
  441. asmcmd : '-o $OBJ $ASM';
  442. externals : false;
  443. labelprefix : '.L';
  444. comment : '# '
  445. )
  446. ,(
  447. id : as_i386_nasmcoff;
  448. idtxt : 'NASMCOFF';
  449. asmbin : 'nasm';
  450. asmcmd : '-f coff -o $OBJ $ASM';
  451. externals : true;
  452. labelprefix : 'L';
  453. comment : '; '
  454. )
  455. ,(
  456. id : as_i386_nasmelf;
  457. idtxt : 'NASMELF';
  458. asmbin : 'nasm';
  459. asmcmd : '-f elf -o $OBJ $ASM';
  460. externals : true;
  461. labelprefix : 'L';
  462. comment : '; '
  463. )
  464. ,(
  465. id : as_i386_nasmobj;
  466. idtxt : 'NASMOBJ';
  467. asmbin : 'nasm';
  468. asmcmd : '-f obj -o $OBJ $ASM';
  469. externals : true;
  470. labelprefix : 'L';
  471. comment : '; '
  472. )
  473. ,(
  474. id : as_i386_tasm;
  475. idtxt : 'TASM';
  476. asmbin : 'tasm';
  477. asmcmd : '/m2 $ASM $OBJ';
  478. externals : true;
  479. labelprefix : '.L';
  480. comment : '; '
  481. )
  482. ,(
  483. id : as_i386_masm;
  484. idtxt : 'MASM';
  485. asmbin : 'masm';
  486. asmcmd : '$ASM $OBJ';
  487. externals : true;
  488. labelprefix : '.L';
  489. comment : '; '
  490. )
  491. ,(
  492. id : as_i386_coff;
  493. idtxt : 'COFF';
  494. asmbin : 'as';
  495. asmcmd : '-o $OBJ $ASM';
  496. externals : false;
  497. labelprefix : '.L';
  498. comment : '# '
  499. )
  500. {$endif i386}
  501. {$ifdef m68k}
  502. ,(
  503. id : as_m68k_o;
  504. idtxt : 'O';
  505. asmbin : 'as';
  506. asmcmd : '-o $OBJ $ASM';
  507. externals : false;
  508. labelprefix : '.L';
  509. comment : '# '
  510. )
  511. ,(
  512. id : as_m68k_gas;
  513. idtxt : 'GAS';
  514. asmbin : 'as68k'; { Gas for the Amiga}
  515. asmcmd : '--register-prefix-optional -o $OBJ $ASM';
  516. externals : false;
  517. labelprefix : '.L';
  518. comment : '| '
  519. )
  520. ,(
  521. id : as_m68k_mit;
  522. idtxt : 'MIT';
  523. asmbin : '';
  524. asmcmd : '-o $OBJ $ASM';
  525. externals : false;
  526. labelprefix : '.L';
  527. comment : '| '
  528. )
  529. ,(
  530. id : as_m68k_mot;
  531. idtxt : 'MOT';
  532. asmbin : '';
  533. asmcmd : '-o $OBJ $ASM';
  534. externals : false;
  535. labelprefix : '__L';
  536. comment : '| '
  537. )
  538. ,(
  539. id : as_m68k_mpw;
  540. idtxt : 'MPW';
  541. asmbin : '';
  542. asmcmd : '-model far -o $OBJ $ASM';
  543. externals : false;
  544. labelprefix : '__L';
  545. comment : '| '
  546. )
  547. {$endif m68k}
  548. );
  549. {****************************************************************************
  550. Linker Info
  551. ****************************************************************************}
  552. link_infos : array[1..linkcnt] of tlinkinfo = (
  553. (
  554. id : link_none
  555. )
  556. {$ifdef i386}
  557. ,(
  558. id : link_i386_ld;
  559. linkbin : 'ld';
  560. linkcmd : '$OPT -o $EXE $RES';
  561. binders : 0;
  562. bindbin : ('','');
  563. bindcmd : ('','');
  564. stripopt : '-s';
  565. libpathprefix : 'SEARCH_DIR(';
  566. libpathsuffix : ')';
  567. groupstart : 'GROUP(';
  568. groupend : ')';
  569. inputstart : 'INPUT(';
  570. inputend : ')';
  571. libprefix : '-l'
  572. )
  573. ,(
  574. id : link_i386_ldgo32v1;
  575. linkbin : 'ld';
  576. linkcmd : '-oformat coff-go32 $OPT -o $EXE @$RES';
  577. binders : 1;
  578. bindbin : ('aout2exe','');
  579. bindcmd : ('$EXE','');
  580. stripopt : '-s';
  581. libpathprefix : '-L';
  582. libpathsuffix : '';
  583. groupstart : '-(';
  584. groupend : '-)';
  585. inputstart : '';
  586. inputend : '';
  587. libprefix : '-l'
  588. )
  589. ,(
  590. id : link_i386_ldgo32v2;
  591. linkbin : 'ld';
  592. linkcmd : '-oformat coff-go32-exe $OPT -o $EXE @$RES';
  593. binders:0;
  594. bindbin : ('','');
  595. bindcmd : ('','');
  596. stripopt : '-s';
  597. libpathprefix : '-L';
  598. libpathsuffix : '';
  599. groupstart : '-(';
  600. groupend : '-)';
  601. inputstart : '';
  602. inputend : '';
  603. libprefix : '-l'
  604. )
  605. ,(
  606. id : link_i386_ldw;
  607. linkbin : 'ldw';
  608. linkcmd : '$OPT -o $EXE $RES';
  609. binders : 0;
  610. bindbin : ('dlltool','ldw');
  611. bindcmd : ('--as asw.exe --dllname $EXE --output-exp exp.$$$',
  612. '-s $OPT -o $EXE $RES exp.$$$');
  613. stripopt : '-s';
  614. libpathprefix : 'SEARCH_DIR(';
  615. libpathsuffix : ')';
  616. groupstart : 'GROUP(';
  617. groupend : ')';
  618. inputstart : 'INPUT(';
  619. inputend : ')';
  620. libprefix : '-l'
  621. )
  622. ,(
  623. id : link_i386_ldos2;
  624. linkbin : 'ld'; { Os/2 }
  625. linkcmd : '-o $EXE @$RES';
  626. binders : 1;
  627. bindbin : ('emxbind','');
  628. bindcmd : ('-b -k$STACKKB -h$HEAPMB -o $EXE.exe $EXE -aim -s$DOSHEAPKB','');
  629. stripopt : '-s';
  630. libpathprefix : '-L';
  631. libpathsuffix : '';
  632. groupstart : ''; {Linker is too primitive...}
  633. groupend : '';
  634. inputstart : '';
  635. inputend : '';
  636. libprefix : '-l'
  637. )
  638. {$endif i386}
  639. {$ifdef m68k}
  640. ,(
  641. id : link_m68k_ld;
  642. linkbin : 'ld';
  643. linkcmd : '$OPT -o $EXE $RES';
  644. binders:0;
  645. bindbin : ('','');
  646. bindcmd : ('','');
  647. stripopt : '-s';
  648. libpathprefix : 'SEARCH_DIR(';
  649. libpathsuffix : ')';
  650. groupstart : 'GROUP(';
  651. groupend : ')';
  652. inputstart : 'INPUT(';
  653. inputend : ')';
  654. libprefix : '-l'
  655. )
  656. {$endif m68k}
  657. );
  658. {****************************************************************************
  659. Ar Info
  660. ****************************************************************************}
  661. ar_infos : array[1..arcnt] of tarinfo = (
  662. (
  663. id : ar_none
  664. )
  665. {$ifdef i386}
  666. ,(
  667. id : ar_i386_ar;
  668. arbin : 'ar';
  669. arcmd : 'rs $LIB $FILES'
  670. ),
  671. (
  672. id : ar_i386_arw;
  673. arbin : 'arw';
  674. arcmd : 'rs $LIB $FILES'
  675. )
  676. {$endif i386}
  677. {$ifdef m68k}
  678. ,(
  679. id : ar_m68k_ar;
  680. arbin : 'ar';
  681. arcmd : 'rs $LIB $FILES'
  682. )
  683. {$endif m68k}
  684. );
  685. {****************************************************************************
  686. Res Info
  687. ****************************************************************************}
  688. res_infos : array[1..rescnt] of tresinfo = (
  689. (
  690. id : res_none
  691. )
  692. {$ifdef i386}
  693. ,(
  694. id : res_i386_windres;
  695. resbin : 'windres';
  696. rescmd : '--include $INC -O coff -o $OBJ $RES'
  697. )
  698. {$endif i386}
  699. );
  700. {****************************************************************************
  701. Targets Info
  702. ****************************************************************************}
  703. target_infos : array[1..targetcnt] of ttargetinfo = (
  704. (
  705. target : target_none;
  706. flags : [];
  707. cpu : no_cpu;
  708. short_name : 'notarget'
  709. )
  710. {$ifdef i386}
  711. ,(
  712. target : target_i386_GO32V1;
  713. flags : [];
  714. cpu : i386;
  715. short_name : 'GO32V1';
  716. unit_env : 'GO32V1UNITS';
  717. system_unit : 'SYSTEM';
  718. smartext : '.sl';
  719. unitext : '.pp1';
  720. unitlibext : '.ppl';
  721. asmext : '.s1';
  722. objext : '.o1';
  723. resext : '.res';
  724. resobjext : '.o1r';
  725. exeext : ''; { The linker produces a.out }
  726. os : os_i386_GO32V1;
  727. link : link_i386_ldgo32v1;
  728. assem : as_i386_o;
  729. ar : ar_i386_ar;
  730. res : res_none;
  731. heapsize : 2048*1024;
  732. maxheapsize : 32768*1024;
  733. stacksize : 16384
  734. ),
  735. (
  736. target : target_i386_GO32V2;
  737. flags : [];
  738. cpu : i386;
  739. short_name : 'GO32V2';
  740. unit_env : 'GO32V2UNITS';
  741. system_unit : 'SYSTEM';
  742. smartext : '.sl';
  743. unitext : '.ppu';
  744. unitlibext : '.ppl';
  745. asmext : '.s';
  746. objext : '.o';
  747. resext : '.res';
  748. resobjext : '.or';
  749. exeext : '.exe';
  750. os : os_i386_GO32V2;
  751. link : link_i386_ldgo32v2;
  752. assem : as_i386_o;
  753. ar : ar_i386_ar;
  754. res : res_none;
  755. heapsize : 2048*1024;
  756. maxheapsize : 32768*1024;
  757. stacksize : 16384
  758. ),
  759. (
  760. target : target_i386_LINUX;
  761. flags : [];
  762. cpu : i386;
  763. short_name : 'LINUX';
  764. unit_env : 'LINUXUNITS';
  765. system_unit : 'syslinux';
  766. smartext : '.sl';
  767. unitext : '.ppu';
  768. unitlibext : '.ppl';
  769. asmext : '.s';
  770. objext : '.o';
  771. resext : '.res';
  772. resobjext : '.or';
  773. exeext : '';
  774. os : os_i386_Linux;
  775. link : link_i386_ld;
  776. assem : as_i386_o;
  777. ar : ar_i386_ar;
  778. res : res_none;
  779. heapsize : 2048*1024;
  780. maxheapsize : 32768*1024;
  781. stacksize : 8192
  782. ),
  783. (
  784. target : target_i386_OS2;
  785. flags : [];
  786. cpu : i386;
  787. short_name : 'OS2';
  788. unit_env : 'OS2UNITS';
  789. system_unit : 'SYSOS2';
  790. smartext : '.sl';
  791. unitext : '.ppo';
  792. unitlibext : '.ppl';
  793. asmext : '.so2';
  794. objext : '.oo2';
  795. resext : '.res';
  796. resobjext : '.oor';
  797. exeext : ''; { The linker produces a.out }
  798. os : os_i386_OS2;
  799. link : link_i386_ldos2;
  800. assem : as_i386_o_aout;
  801. ar : ar_i386_ar;
  802. res : res_none;
  803. heapsize : 256*1024;
  804. maxheapsize : 32768*1024;
  805. stacksize : 32768
  806. ),
  807. (
  808. target : target_i386_WIN32;
  809. flags : [];
  810. cpu : i386;
  811. short_name : 'WIN32';
  812. unit_env : 'WIN32UNITS';
  813. system_unit : 'SYSWIN32';
  814. smartext : '.slw';
  815. unitext : '.ppw';
  816. unitlibext : '.ppl';
  817. asmext : '.sw';
  818. objext : '.ow';
  819. resext : '.rc';
  820. resobjext : '.owr';
  821. exeext : '.exe';
  822. os : os_i386_Win32;
  823. link : link_i386_ldw;
  824. assem : as_i386_asw;
  825. ar : ar_i386_arw;
  826. res : res_i386_windres;
  827. heapsize : 2048*1024;
  828. maxheapsize : 32768*1024;
  829. stacksize : 32768
  830. )
  831. {$endif i386}
  832. {$ifdef m68k}
  833. ,(
  834. target : target_m68k_Amiga;
  835. flags : [];
  836. cpu : m68k;
  837. short_name : 'AMIGA';
  838. unit_env : '';
  839. system_unit : 'sysamiga';
  840. smartext : '.sl';
  841. unitext : '.ppa';
  842. unitlibext : '.ppl';
  843. asmext : '.asm';
  844. objext : '.o';
  845. resext : '.res';
  846. resobjext : '.or';
  847. exeext : '';
  848. os : os_m68k_Amiga;
  849. link : link_m68k_ld;
  850. assem : as_m68k_o;
  851. ar : ar_m68k_ar;
  852. res : res_none;
  853. heapsize : 128*1024;
  854. maxheapsize : 32768*1024;
  855. stacksize : 8192
  856. ),
  857. (
  858. target : target_m68k_Atari;
  859. flags : [];
  860. cpu : m68k;
  861. short_name : 'ATARI';
  862. unit_env : '';
  863. system_unit : 'SYSATARI';
  864. smartext : '.sl';
  865. unitext : '.ppt';
  866. unitlibext : '.ppl';
  867. asmext : '.s';
  868. objext : '.o';
  869. resext : '.res';
  870. resobjext : '.or';
  871. exeext : '.ttp';
  872. os : os_m68k_Atari;
  873. link : link_m68k_ld;
  874. assem : as_m68k_o;
  875. ar : ar_m68k_ar;
  876. res : res_none;
  877. heapsize : 16*1024;
  878. maxheapsize : 32768*1024;
  879. stacksize : 8192
  880. ),
  881. (
  882. target : target_m68k_Mac;
  883. flags : [];
  884. cpu : m68k;
  885. short_name : 'MACOS';
  886. unit_env : '';
  887. system_unit : 'sysmac';
  888. smartext : '.sl';
  889. unitext : '.ppt';
  890. unitlibext : '.ppl';
  891. asmext : '.a';
  892. objext : '.o';
  893. resext : '.res';
  894. resobjext : '.or';
  895. exeext : '';
  896. os : os_m68k_Mac;
  897. link : link_m68k_ld;
  898. assem : as_m68k_mpw;
  899. ar : ar_m68k_ar;
  900. res : res_none;
  901. heapsize : 128*1024;
  902. maxheapsize : 32768*1024;
  903. stacksize : 8192
  904. ),
  905. (
  906. target : target_m68k_linux;
  907. flags : [];
  908. cpu : m68k;
  909. short_name : 'LINUX';
  910. unit_env : 'LINUXUNITS';
  911. system_unit : 'syslinux';
  912. smartext : '.sl';
  913. unitext : '.ppu';
  914. unitlibext : '.ppl';
  915. asmext : '.s';
  916. objext : '.o';
  917. resext : '.res';
  918. resobjext : '.or';
  919. exeext : '';
  920. os : os_m68k_Linux;
  921. link : link_m68k_ld;
  922. assem : as_m68k_o;
  923. ar : ar_m68k_ar;
  924. res : res_none;
  925. heapsize : 128*1024;
  926. maxheapsize : 32768*1024;
  927. stacksize : 8192
  928. ),
  929. (
  930. target : target_m68k_PalmOS;
  931. flags : [];
  932. cpu : m68k;
  933. short_name : 'PALMOS';
  934. unit_env : 'PALMUNITS';
  935. system_unit : 'syspalm';
  936. smartext : '.sl';
  937. unitext : '.ppu';
  938. unitlibext : '.ppl';
  939. asmext : '.s';
  940. objext : '.o';
  941. resext : '.res';
  942. resobjext : '.or';
  943. exeext : '';
  944. os : os_m68k_PalmOS;
  945. link : link_m68k_ld;
  946. assem : as_m68k_o;
  947. ar : ar_m68k_ar;
  948. res : res_none;
  949. heapsize : 128*1024;
  950. maxheapsize : 32768*1024;
  951. stacksize : 8192
  952. )
  953. {$endif m68k}
  954. );
  955. {****************************************************************************
  956. AsmModeInfo
  957. ****************************************************************************}
  958. asmmodeinfos : array[1..asmmodecnt] of tasmmodeinfo = (
  959. (
  960. id : asmmode_none;
  961. idtxt : 'none'
  962. )
  963. {$ifdef i386}
  964. ,(
  965. id : asmmode_i386_direct;
  966. idtxt : 'DIRECT'
  967. ),
  968. (
  969. id : asmmode_i386_att;
  970. idtxt : 'ATT'
  971. ),
  972. (
  973. id : asmmode_i386_intel;
  974. idtxt : 'INTEL'
  975. )
  976. {$endif i386}
  977. {$ifdef m68k}
  978. ,(
  979. id : asmmode_m68k_mot;
  980. idtxt : 'MOT'
  981. )
  982. {$endif m68k}
  983. );
  984. {****************************************************************************
  985. Helpers
  986. ****************************************************************************}
  987. function upper(const s : string) : string;
  988. var
  989. i : longint;
  990. begin
  991. for i:=1 to length(s) do
  992. if s[i] in ['a'..'z'] then
  993. upper[i]:=char(byte(s[i])-32)
  994. else
  995. upper[i]:=s[i];
  996. {$ifndef TP}
  997. {$ifopt H+}
  998. SetLength(upper,length(s));
  999. {$else}
  1000. upper[0]:=s[0];
  1001. {$endif}
  1002. {$else}
  1003. upper[0]:=s[0];
  1004. {$endif}
  1005. end;
  1006. function set_target_os(t:tos):boolean;
  1007. var
  1008. i : longint;
  1009. begin
  1010. set_target_os:=false;
  1011. { target 1 is none }
  1012. for i:=2 to oscnt do
  1013. if os_infos[i].id=t then
  1014. begin
  1015. target_os:=os_infos[i];
  1016. set_target_os:=true;
  1017. exit;
  1018. end;
  1019. end;
  1020. function set_target_asm(t:tasm):boolean;
  1021. var
  1022. i : longint;
  1023. begin
  1024. set_target_asm:=false;
  1025. for i:=1 to asmcnt do
  1026. if as_infos[i].id=t then
  1027. begin
  1028. target_asm:=as_infos[i];
  1029. set_target_asm:=true;
  1030. exit;
  1031. end;
  1032. end;
  1033. function set_target_link(t:tlink):boolean;
  1034. var
  1035. i : longint;
  1036. begin
  1037. set_target_link:=false;
  1038. for i:=1 to linkcnt do
  1039. if link_infos[i].id=t then
  1040. begin
  1041. target_link:=link_infos[i];
  1042. set_target_link:=true;
  1043. exit;
  1044. end;
  1045. end;
  1046. function set_target_ar(t:tar):boolean;
  1047. var
  1048. i : longint;
  1049. begin
  1050. set_target_ar:=false;
  1051. for i:=1 to arcnt do
  1052. if ar_infos[i].id=t then
  1053. begin
  1054. target_ar:=ar_infos[i];
  1055. set_target_ar:=true;
  1056. exit;
  1057. end;
  1058. end;
  1059. function set_target_res(t:tres):boolean;
  1060. var
  1061. i : longint;
  1062. begin
  1063. set_target_res:=false;
  1064. for i:=1 to rescnt do
  1065. if res_infos[i].id=t then
  1066. begin
  1067. target_res:=res_infos[i];
  1068. set_target_res:=true;
  1069. exit;
  1070. end;
  1071. end;
  1072. function set_target_info(t:ttarget):boolean;
  1073. var
  1074. i : longint;
  1075. begin
  1076. set_target_info:=false;
  1077. for i:=1 to targetcnt do
  1078. if target_infos[i].target=t then
  1079. begin
  1080. target_info:=target_infos[i];
  1081. set_target_os(target_info.os);
  1082. set_target_asm(target_info.assem);
  1083. set_target_link(target_info.link);
  1084. set_target_ar(target_info.ar);
  1085. set_target_res(target_info.res);
  1086. target_cpu:=target_info.cpu;
  1087. set_target_info:=true;
  1088. exit;
  1089. end;
  1090. end;
  1091. {****************************************************************************
  1092. Load from string
  1093. ****************************************************************************}
  1094. function set_string_target(s : string) : boolean;
  1095. var
  1096. i : longint;
  1097. begin
  1098. set_string_target:=false;
  1099. { this should be case insensitive !! PM }
  1100. s:=upper(s);
  1101. for i:=1 to targetcnt do
  1102. if target_infos[i].short_name=s then
  1103. begin
  1104. target_info:=target_infos[i];
  1105. set_target_os(target_info.os);
  1106. set_target_asm(target_info.assem);
  1107. set_target_link(target_info.link);
  1108. set_target_ar(target_info.ar);
  1109. set_target_res(target_info.res);
  1110. target_cpu:=target_info.cpu;
  1111. set_string_target:=true;
  1112. exit;
  1113. end;
  1114. end;
  1115. function set_string_asm(s : string) : boolean;
  1116. var
  1117. i : longint;
  1118. begin
  1119. set_string_asm:=false;
  1120. { this should be case insensitive !! PM }
  1121. s:=upper(s);
  1122. for i:=1 to asmcnt do
  1123. if as_infos[i].idtxt=s then
  1124. begin
  1125. target_asm:=as_infos[i];
  1126. set_string_asm:=true;
  1127. end;
  1128. end;
  1129. function set_string_asmmode(s:string;var t:tasmmode):boolean;
  1130. var
  1131. i : longint;
  1132. begin
  1133. set_string_asmmode:=false;
  1134. { this should be case insensitive !! PM }
  1135. s:=upper(s);
  1136. for i:=1 to asmmodecnt do
  1137. if asmmodeinfos[i].idtxt=s then
  1138. begin
  1139. t:=asmmodeinfos[i].id;
  1140. set_string_asmmode:=true;
  1141. end;
  1142. end;
  1143. {****************************************************************************
  1144. Initialization of default target
  1145. ****************************************************************************}
  1146. procedure default_os(t:ttarget);
  1147. begin
  1148. set_target_info(t);
  1149. if source_os.name='' then
  1150. source_os:=target_os;
  1151. end;
  1152. procedure set_source_os(t:tos);
  1153. var
  1154. i : longint;
  1155. begin
  1156. { can't use message() here (PFV) }
  1157. if source_os.name<>'' then
  1158. Writeln('Warning: Source OS Redefined!');
  1159. for i:=1 to oscnt do
  1160. if os_infos[i].id=t then
  1161. begin
  1162. source_os:=os_infos[i];
  1163. exit;
  1164. end;
  1165. end;
  1166. begin
  1167. { first get source OS }
  1168. source_os.name:='';
  1169. { please note then we use cpu86 and cpu68 here on purpose !! }
  1170. {$ifdef cpu86}
  1171. {$ifdef GO32V1}
  1172. set_source_os(os_i386_GO32V1);
  1173. {$else}
  1174. {$ifdef GO32V2}
  1175. set_source_os(os_i386_GO32V2);
  1176. {$else}
  1177. {$ifdef OS2}
  1178. set_source_os(os_i386_OS2);
  1179. {$else}
  1180. {$ifdef LINUX}
  1181. set_source_os(os_i386_LINUX);
  1182. {$else}
  1183. {$ifdef WIN32}
  1184. set_source_os(os_i386_WIN32);
  1185. {$endif win32}
  1186. {$endif linux}
  1187. {$endif os2}
  1188. {$endif go32v2}
  1189. {$endif go32v1}
  1190. {$endif cpu86}
  1191. {$ifdef cpu68}
  1192. {$ifdef AMIGA}
  1193. set_source_os(os_m68k_Amiga);
  1194. {$else}
  1195. {$ifdef ATARI}
  1196. set_source_os(os_m68k_Atari);
  1197. {$else}
  1198. {$ifdef MACOS}
  1199. set_source_os(os_m68k_MAC);
  1200. {$else}
  1201. {$ifdef LINUX}
  1202. set_source_os(os_m68k_linux);
  1203. {$endif linux}
  1204. {$endif macos}
  1205. {$endif atari}
  1206. {$endif amiga}
  1207. {$endif cpu68}
  1208. { Now default target !! }
  1209. {$ifdef i386}
  1210. {$ifdef GO32V1}
  1211. default_os(target_i386_GO32V1);
  1212. {$else}
  1213. {$ifdef GO32V2}
  1214. default_os(target_i386_GO32V2);
  1215. {$else}
  1216. {$ifdef OS2}
  1217. default_os(target_i386_OS2);
  1218. {$else}
  1219. {$ifdef LINUX}
  1220. default_os(target_i386_LINUX);
  1221. {$else}
  1222. {$ifdef WIN32}
  1223. default_os(target_i386_WIN32);
  1224. {$else}
  1225. default_os(target_i386_GO32V2);
  1226. {$endif win32}
  1227. {$endif linux}
  1228. {$endif os2}
  1229. {$endif go32v2}
  1230. {$endif go32v1}
  1231. {$endif i386}
  1232. {$ifdef m68k}
  1233. {$ifdef AMIGA}
  1234. default_os(target_m68k_Amiga);
  1235. {$else}
  1236. {$ifdef ATARI}
  1237. default_os(target_m68k_Atari);
  1238. {$else}
  1239. {$ifdef MACOS}
  1240. default_os(target_m68k_Mac);
  1241. {$else}
  1242. {$ifdef LINUX}
  1243. default_os(target_m68k_linux);
  1244. {$else}
  1245. default_os(target_m68k_Amiga);
  1246. {$endif linux}
  1247. {$endif macos}
  1248. {$endif atari}
  1249. {$endif amiga}
  1250. {$endif m68k}
  1251. end.
  1252. {
  1253. $Log$
  1254. Revision 1.56 1999-01-10 15:38:01 peter
  1255. * moved some tables from ra386*.pas -> i386.pas
  1256. + start of coff writer
  1257. * renamed asmutils unit to rautils
  1258. Revision 1.55 1999/01/06 22:58:47 florian
  1259. + some stuff for the new code generator
  1260. Revision 1.54 1998/12/28 23:26:26 peter
  1261. + resource file handling ($R directive) for Win32
  1262. Revision 1.53 1998/12/15 10:23:30 peter
  1263. + -iSO, -iSP, -iTO, -iTP
  1264. Revision 1.52 1998/12/03 10:17:32 peter
  1265. * target_os.use_bound_instruction boolean
  1266. Revision 1.51 1998/11/30 09:43:23 pierre
  1267. * some range check bugs fixed (still not working !)
  1268. + added DLL writing support for win32 (also accepts variables)
  1269. + TempAnsi for code that could be used for Temporary ansi strings
  1270. handling
  1271. Revision 1.50 1998/11/16 15:41:45 peter
  1272. * tp7 didn't like my ifopt H+ :(
  1273. Revision 1.49 1998/11/16 10:17:09 peter
  1274. * fixed for H+ compilation
  1275. Revision 1.48 1998/10/26 14:19:30 pierre
  1276. + added options -lS and -lT for source and target os output
  1277. (to have a easier way to test OS_SOURCE abd OS_TARGET in makefiles)
  1278. * several problems with rtti data
  1279. (type of sym was not checked)
  1280. assumed to be varsym when they could be procsym or property syms !!
  1281. Revision 1.47 1998/10/20 08:07:04 pierre
  1282. * several memory corruptions due to double freemem solved
  1283. => never use p^.loc.location:=p^.left^.loc.location;
  1284. + finally I added now by default
  1285. that ra386dir translates global and unit symbols
  1286. + added a first field in tsymtable and
  1287. a nextsym field in tsym
  1288. (this allows to obtain ordered type info for
  1289. records and objects in gdb !)
  1290. Revision 1.46 1998/10/16 08:51:54 peter
  1291. + target_os.stackalignment
  1292. + stack can be aligned at 2 or 4 byte boundaries
  1293. Revision 1.45 1998/10/15 16:20:41 peter
  1294. * removed uses verbose which is not possible! this unit may not use
  1295. any other unit !
  1296. Revision 1.44 1998/10/14 11:28:25 florian
  1297. * emitpushreferenceaddress gets now the asmlist as parameter
  1298. * m68k version compiles with -duseansistrings
  1299. Revision 1.43 1998/10/14 08:08:56 pierre
  1300. * following Peters remark, removed all ifdef in
  1301. the systems unit enums
  1302. * last bugs of cg68k removed for sysamiga
  1303. (sysamiga assembles with as68k !!)
  1304. Revision 1.42 1998/10/13 16:50:23 pierre
  1305. * undid some changes of Peter that made the compiler wrong
  1306. for m68k (I had to reinsert some ifdefs)
  1307. * removed several memory leaks under m68k
  1308. * removed the meory leaks for assembler readers
  1309. * cross compiling shoud work again better
  1310. ( crosscompiling sysamiga works
  1311. but as68k still complain about some code !)
  1312. Revision 1.41 1998/10/13 13:10:31 peter
  1313. * new style for m68k/i386 infos and enums
  1314. Revision 1.40 1998/10/13 09:13:09 pierre
  1315. * assembler type output command line was case sensitive
  1316. Revision 1.39 1998/10/13 08:19:42 pierre
  1317. + source_os is now set correctly for cross-processor compilers
  1318. (tos contains all target_infos and
  1319. we use CPU86 and CPU68 conditionnals to
  1320. get the source operating system
  1321. this only works if you do not undefine
  1322. the source target !!)
  1323. * several cg68k memory leaks fixed
  1324. + started to change the code so that it should be possible to have
  1325. a complete compiler (both for m68k and i386 !!)
  1326. Revision 1.38 1998/10/07 04:26:58 carl
  1327. * bugfixes
  1328. + added mpw support
  1329. Revision 1.37 1998/10/06 20:40:58 peter
  1330. * remove -D from assemblers
  1331. Revision 1.36 1998/09/16 16:41:50 peter
  1332. * merged fixes
  1333. Revision 1.33.2.3 1998/09/16 16:13:13 peter
  1334. * win32 .o -> .ow and .a -> .aw
  1335. Revision 1.35 1998/09/11 17:35:33 peter
  1336. * fixed tabs
  1337. Revision 1.34 1998/09/11 12:27:55 pierre
  1338. * restored m68k part
  1339. Revision 1.33.2.2 1998/09/11 17:29:20 peter
  1340. * fixed tabs
  1341. Revision 1.33.2.1 1998/09/11 12:06:00 pierre
  1342. * m68k part restored
  1343. Revision 1.33 1998/09/10 15:25:39 daniel
  1344. + Added maxheapsize.
  1345. * Corrected semi-bug in calling the assembler and the linker
  1346. Revision 1.31 1998/09/01 09:07:13 peter
  1347. * m68k fixes, splitted cg68k like cgi386
  1348. Revision 1.30 1998/08/31 12:26:34 peter
  1349. * m68k and palmos updates from surebugfixes
  1350. Revision 1.29 1998/08/26 10:09:21 peter
  1351. * more lowercase extensions
  1352. Revision 1.28 1998/08/25 12:42:47 pierre
  1353. * CDECL changed to CVAR for variables
  1354. specifications are read in structures also
  1355. + started adding GPC compatibility mode ( option -Sp)
  1356. * names changed to lowercase
  1357. Revision 1.27 1998/08/21 15:16:57 peter
  1358. * win32 compiles a bit better, no growheap crash
  1359. Revision 1.26 1998/08/19 16:07:55 jonas
  1360. * changed optimizer switches + cleanup of DestroyRefs in daopt386.pas
  1361. Revision 1.25 1998/08/18 09:24:45 pierre
  1362. * small warning position bug fixed
  1363. * support_mmx switches splitting was missing
  1364. * rhide error and warning output corrected
  1365. Revision 1.24 1998/08/17 09:17:54 peter
  1366. * static/shared linking updates
  1367. Revision 1.23 1998/06/25 08:48:20 florian
  1368. * first version of rtti support
  1369. Revision 1.22 1998/06/17 14:10:21 peter
  1370. * small os2 fixes
  1371. * fixed interdependent units with newppu (remake3 under linux works now)
  1372. Revision 1.20 1998/06/15 15:38:14 pierre
  1373. * small bug in systems.pas corrected
  1374. + operators in different units better hanlded
  1375. Revision 1.19 1998/06/15 13:34:24 daniel
  1376. * Fixed spelling mistakes in comments.
  1377. * Fixed some OS/2 parameters.
  1378. Revision 1.18 1998/06/08 22:59:54 peter
  1379. * smartlinking works for win32
  1380. * some defines to exclude some compiler parts
  1381. Revision 1.17 1998/06/04 23:52:04 peter
  1382. * m68k compiles
  1383. + .def file creation moved to gendef.pas so it could also be used
  1384. for win32
  1385. Revision 1.16 1998/06/01 16:50:22 peter
  1386. + boolean -> ord conversion
  1387. * fixed ord -> boolean conversion
  1388. Revision 1.15 1998/05/30 14:31:11 peter
  1389. + $ASMMODE
  1390. Revision 1.14 1998/05/29 13:24:45 peter
  1391. + asw assembler
  1392. Revision 1.13 1998/05/27 00:20:33 peter
  1393. * some scanner optimizes
  1394. * automaticly aout2exe for go32v1
  1395. * fixed dynamiclinker option which was added at the wrong place
  1396. Revision 1.12 1998/05/23 01:21:32 peter
  1397. + aktasmmode, aktoptprocessor, aktoutputformat
  1398. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  1399. + $LIBNAME to set the library name where the unit will be put in
  1400. * splitted cgi386 a bit (codeseg to large for bp7)
  1401. * nasm, tasm works again. nasm moved to ag386nsm.pas
  1402. Revision 1.11 1998/05/22 12:32:49 peter
  1403. * fixed -L on the commandline, Dos commandline is only 128 bytes
  1404. Revision 1.10 1998/05/11 13:07:58 peter
  1405. + $ifdef NEWPPU for the new ppuformat
  1406. + $define GDB not longer required
  1407. * removed all warnings and stripped some log comments
  1408. * no findfirst/findnext anymore to remove smartlink *.o files
  1409. Revision 1.9 1998/05/06 08:38:49 pierre
  1410. * better position info with UseTokenInfo
  1411. UseTokenInfo greatly simplified
  1412. + added check for changed tree after first time firstpass
  1413. (if we could remove all the cases were it happen
  1414. we could skip all firstpass if firstpasscount > 1)
  1415. Only with ExtDebug
  1416. Revision 1.8 1998/05/04 20:19:54 peter
  1417. * small fix for go32v2
  1418. Revision 1.7 1998/05/04 17:54:29 peter
  1419. + smartlinking works (only case jumptable left todo)
  1420. * redesign of systems.pas to support assemblers and linkers
  1421. + Unitname is now also in the PPU-file, increased version to 14
  1422. Revision 1.6 1998/05/01 07:43:57 florian
  1423. + basics for rtti implemented
  1424. + switch $m (generate rtti for published sections)
  1425. Revision 1.5 1998/04/29 10:34:06 pierre
  1426. + added some code for ansistring (not complete nor working yet)
  1427. * corrected operator overloading
  1428. * corrected nasm output
  1429. + started inline procedures
  1430. + added starstarn : use ** for exponentiation (^ gave problems)
  1431. + started UseTokenInfo cond to get accurate positions
  1432. Revision 1.4 1998/04/27 15:45:20 peter
  1433. + -Xl for smartlink
  1434. + target_info.arext = .a
  1435. Revision 1.3 1998/04/16 10:50:45 daniel
  1436. * Fixed some things that were broken for OS/2.
  1437. }