Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate app. exe for windows #45

Closed
Spoiledpay opened this issue Dec 12, 2021 · 3 comments
Closed

Generate app. exe for windows #45

Spoiledpay opened this issue Dec 12, 2021 · 3 comments

Comments

@Spoiledpay
Copy link

Dear, the new language, does it generate .exe app for windows? Informs that using -tar exe can generate or get it wrong.?

obc -src Hello.obs -tar "exe"

@objeck
Copy link
Owner

objeck commented Dec 13, 2021

Hi Spoiledpay,

The -tar option allows programmers to specify a target format such as a VM executable using the -tar exe option. Another output format is a library which, requires the -tar lib option. In general, the -tar option is not needed to compile programs.

Here's an example of compiling sample code:

  1. obc -src http_regex_9.obs -lib net,regex compiles the source and includes the two required libraries for regex and HTTPS support
  2. The output from the above is http_regex_9.obe a VM executable
  3. The binary can be executed using obr http_regex_9

Check out the getting started guide for more, or let me know if you have additional questions.

Cheers,
Randy

@Spoiledpay
Copy link
Author

Hi,
So we can say that it resembles the Java language. It does not generate a native windows application. Like hello.exe. Where can be run from the command line just as c:\hello.exe

Can you confirm what I said or she has a way to generate pure and native executables. And not being interpreted as java -tar hello.jar

thanks

Fernando Dantas

@objeck
Copy link
Owner

objeck commented Dec 13, 2021

Hi Fernando,

You are correct; the compiler generates bytecode like Java, not platform-specific executables. A *.obe file is similar to a *.jar file containing all code needed to run a program using a VM.

Thanks,
Randy

@objeck objeck closed this as completed Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants