Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's a good lightweight programming language that compiles to native windows code?
    text
    copied!<p>I'm a .Net developer but I have a situation where I can't guarantee that the .Net Framework will be installed on the target machine.</p> <p>I've seen a few questions (<a href="https://stackoverflow.com/questions/335499/are-there-tools-to-compile-cil-to-a-binary">here</a> and <a href="https://stackoverflow.com/questions/45702/is-there-some-way-to-compile-a-net-application-to-native-code">here</a>) that suggest using NGen to compile to native code. Both point out that you still need the framework though.</p> <p>I want to write a fairly lightweight app (basic GUI, no database, nothing complicated) but for various reasons, I don't want to have to install any frameworks or bytecode interpreters.</p> <p><a href="https://stackoverflow.com/questions/79582/best-win32-compiled-scripting-language">This question</a> suggests Python and py2exe. I'm not familiar with Python, but if it's the best tool for the job, I can probably learn enough to write this app (I'd prefer not to though). I've also thought about writing it in DHTML and javascript - I can rely on the machine having a relatively new browser.</p> <p>I'm familiar with the C family of languages and I've dabbled in Java, PHP, and Ruby.</p> <p><strong>Can anyone suggest a language that I can easily compile to native Win32 code?</strong></p> <p><em>Edit: Clarification</em></p> <p>There have been a few answers suggesting that if I'm familiar with the C family of languages, why not just use C? I should probably clarify. I use C# every day and I was brought up on C+ and C++ (but haven't used either for quite a few years).</p> <p>It does look like C/C++ might be the way to go, but I'll have to refresh my memory on them :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload