Current status of bintools

discussion of forwardcom instruction set and corresponding hardware and software

Moderator: agner

Post Reply
DanB91
Posts: 3
Joined: 2020-02-07, 3:51:27

Current status of bintools

Post by DanB91 »

Hi all,

I recently heard about FowardCom and I am pretty interested in playing around with the bintools and emulator, since the website said it is available. However, looking at code in the GitHub it looks like the emulator (and also the linker) is not there. Does the emulator still need to be written? Just curious what the status actually is of the bintools and maybe I can help out for the emulator if it is not finished.
agner
Site Admin
Posts: 184
Joined: 2017-10-15, 8:07:27
Contact:

Re: Current status of bintools

Post by agner »

Thanks for your interest. All the tools are there, including emulator. What may confuse you is that all the tools are combined into a single executable file. See the manual for how to use it.

You can find a windows executable in forw.zip. In other operating systems, you have to compile the executable using makefile.
DanB91
Posts: 3
Joined: 2020-02-07, 3:51:27

Re: Current status of bintools

Post by DanB91 »

Sorry, I had jumped to conclusions. I wasn't clear on why I didn't think the emulator was there. I was trying to run the hello.as example by running

Code: Select all

./make_example.sh hello
and got the following output:

Code: Select all

$ ./make_example.sh hello

Input file: hello.as, output file: hello.ob
Converting from Assembly to ForwardCom ELF

Error 8199: No more than one input file and one output file can be specified
Error 8201: Cannot read input file hello.ex
I do have libc.li, hello.as and forw in the same directory as the script.

The main reason I didn't think the emulator was there was because I was looking at the code and it look like the '-link' and '-emu' options didn't seem to do anything
https://github.com/ForwardCom/bintools/ ... mdline.cpp

Code: Select all

  case CMDL_JOB_LINK:
        break;

    case CMDL_JOB_LIB:
        break;

    case CMDL_JOB_EMU:
        break;
 ...
 
 
void CCommandLineInterpreter::interpretLinkOption(char * string) {
    // Interpret linker options
}

void CCommandLineInterpreter::interpretEmulateOption(char * string) {
    // Interpret emulate options
}
 
Am I doing something wrong with executing make_example.sh? Does the GitHub not have the latest code? Thanks!
agner
Site Admin
Posts: 184
Joined: 2017-10-15, 8:07:27
Contact:

Re: Current status of bintools

Post by agner »

Thank you for reporting this problem.

Now I have updated the code and fixed a problem with Linux. Does it work now?
DanB91
Posts: 3
Joined: 2020-02-07, 3:51:27

Re: Current status of bintools

Post by DanB91 »

Updated the git repo and it works now! Tried it on macOS too. Thank you for the fix. Looking forward to playing around with this
Post Reply