systems.pas 43 KB

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