Author Topic: co2.exe and gxo2.exe  (Read 168 times)

0 Members and 1 Guest are viewing this topic.

Arnold

  • Hero Member
  • *****
  • Posts: 677
co2.exe and gxo2.exe
« on: June 15, 2018, 07:24:41 AM »
Hi Charles,

there is a difference between co2.exe and gxo2.exe. I tried this little batch file (ListMultilingual.bat) in \examples\WideStrings:

Code: [Select]
::List Multilingual.o2bas - assembly, script, intermediate

..\..\co2.exe -a -m Multilingual.o2bas > listc_a.txt
..\..\gxo2.exe -a -m Multilingual.o2bas > listg_a.txt

..\..\co2.exe -b -m Multilingual.o2bas > listc_b.txt
..\..\gxo2.exe -b -m Multilingual.o2bas > listg_b.txt

..\..\co2.exe -i -m Multilingual.o2bas > listc_i.txt
..\..\gxo2.exe -i -m Multilingual.o2bas > listg_i.txt

@echo.
@pause

co2.exe will create listings, gxo2.exe does not. I usually use co2.exe and I do not know if you wish to keep gxo2.exe but I wanted to draw your attention to the deviation.

Roland

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3751
    • Oxygen Basic
Re: co2.exe and gxo2.exe
« Reply #1 on: June 15, 2018, 08:51:41 AM »
Thanks, Roland.

My preference is to go with CO2.

Incidentally, you can also get selective listings with #show "filename" ....

If a quoted filename is given, then  it will save the listing to the file instead of displaying a messagebox.


Code: [Select]
int a
#show  "t.txt" a=1

block of code:
Code: [Select]
int a,b
#show  "t.txt" {
a=1
b=2
}