wilsonlarg
wilsonlarg

Reputation: 155

Mono in linux & windows

Is there any difference in performance when running two executables with mono in linux, if:

1) the one executable has been compiled from c# source code previously in windows (e.g.VS).

2) the other executable has been compiled from the same source with gmcs in linux.

Upvotes: 3

Views: 472

Answers (3)

Sharique
Sharique

Reputation: 4219

I don't think there is any direct performance difference when running same application on Mono in Linux and Windows. There is an indirect performance difference is possible. By indirect I mean performance difference of mono on Linux and Windows.

Upvotes: 1

Colin Pickard
Colin Pickard

Reputation: 46643

Which compiler on Windows?

I believe gmcs on Windows or Linux will give you the same output.

If you are using a different compiler (e.g. VS / csc) you will probably have subtle differences

Upvotes: 3

Mehrdad Afshari
Mehrdad Afshari

Reputation: 421988

It shouldn't matter from mono runtime's perspective since they are both valid IL codes (assuming compilers are bug-free).

There might be a performance difference which can be attributed to the level of optimization done by the C# compiler.

Upvotes: 5

Related Questions