systems.pas 45 KB

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