systems.pas 42 KB

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