systems.pas 45 KB

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