Author Topic: QB64 command line  (Read 3982 times)

0 Members and 1 Guest are viewing this topic.

Offline Joshua

  • Newbie
  • Posts: 10
    • View Profile
QB64 command line
« on: December 29, 2018, 03:40:08 pm »
I seem to remember that you can run the QB64 compiler from the command line?  Is there a reference about it?  When I search all I find is COMMAND$ etc.

I've been using VScode a lot lately and enjoying it.  I'm toying with the idea of maybe making an extension for QB64.

Offline blametroi

  • Newbie
  • Posts: 26
    • View Profile
Re: QB64 command line
« Reply #1 on: December 29, 2018, 04:41:09 pm »
Yeah, I've been tinkering with a vim extension (not mine originally) that compiles and runs from vim.

here's what I have from those scripts:

qb64 -c -o outputfilename inputfilename

switches

 -o    output exe filename
 -c    Compile file
 -x    As -c, but use the console instead of a graphical window for pr>
 -z    Do not compile generated C++ code.
 -q    Compile for Qloud.
 -g    Do not include graphics runtime (equivalent to $CONSOLE:ONLY)

All switches imply -c; -z and -q imply -x.

Options must proceed the filename.
 -- can be used as a dummy option to force the next thing to be a file

Offline Joshua

  • Newbie
  • Posts: 10
    • View Profile
Re: QB64 command line
« Reply #2 on: December 29, 2018, 05:42:52 pm »
Excellent.  If I'm reading this correctly, you can have a look at the c++ code if you use -z?

But vim?  That's hardcore.  Nano is as far as I care to go with cli editors.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: QB64 command line
« Reply #3 on: December 29, 2018, 06:29:00 pm »
You can see the c-code as you write your program.  It’s translated on the go, as the internal syntax checker works.

Find your program in internal/temp.  Main.txt is the main program, translated line by line.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline blametroi

  • Newbie
  • Posts: 26
    • View Profile
Re: QB64 command line
« Reply #4 on: December 29, 2018, 07:43:42 pm »
But vim?  That's hardcore.  Nano is as far as I care to go with cli editors.

Kids these days ;) I did my first programming with a card punch. vim is high tech. Flawed, but high tech.