systems.pas 42 KB

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