开发者

What programming language can be run on any operating system without installing any framework? [closed]

开发者 https://www.devze.com 2023-03-25 03:00 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_StackOverflow社区 Closed 11 years ago.

I wrote a program with C#, but in order to run the application .NET framework is needed and I have no authority to install any program on systems (most of them are XP),

I want to know is there any way to run C# application without .NET framework?(I have searched stackoverflow and google and most of people say NO, but I ask again for a little hope!)

If the answer to this question in NO, what language is very similar to C# and there is no other program to be installed to run. (most of my systems are XP SP1)

Best Regards.


Most operating systems come with a C compiler, or one is readily available so you can use that.

I think you're confusing the language with the general availability of libraries and confused by 'framework' too.

In terms of 'any operating system' if you mean mobile phones, embedded systems, Linux, Unix, other *Nixes, workstations, Windows, .. you could find a C compiler for all of those. Don't expect your programs to have a GUI, though.


Salamander is an obfuscation tool that converts your .NET programs into a native self-contained image. This will run without having to install the framework because everything is bundled together however, if you do so, you'll get huge binaries. I believe even the smallest programs go up by 20-30 MB.

It actually says something about that you need a small run-time component for Salamander itself but they also say that it is to be removed in future versions. While Salamander is a tool for protecting you code it can be used to create self contained .NET applications.


The closest you can get (all operating systems and C#-like) is C (or perhaps C++) but even then, the differences between the operating systems will cause a lot of handling OS specific stuff.


if all your target machines are XP (win32 or win64 OS) the best language without installation of any framework is native machine code based language which is C++.

it is close to C# in a sense it supports OOP, but is far from C# with its simplicity.

by compiling C++ code with target machine as Windows, it can run without any further requirement on any windows machine.

0

精彩评论

暂无评论...
验证码 换一张
取 消