473,383 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Universal environment for running programs written in C++

Greetings.

Is there any project of universal environment for running programs
written in C++ ? For example a programmer compiles program using
compilator and linker that produces universal executable file (not
system executable file) and then he starts that program using some kind
of emulator that can be implemented in any platform.
That is like Java but only for C/C++ programs.
Is there somewhere such project ?
+ +
Jul 30 '06 #1
9 1827
Andrzej wrote:
Is there any project of universal environment for running programs
written in C++ ? For example a programmer compiles program using
compilator and linker that produces universal executable file (not
system executable file) and then he starts that program using some
kind of emulator that can be implemented in any platform.
That is like Java but only for C/C++ programs.
Is there somewhere such project ?
If you don't receive any confirmation, does it mean there isn't any,
or does it mean your question didn't reach somebody who knows?

I know that there is a project Microsoft pushes, called CLR (common
language runtime), which is capable of running programs compiled from
several languages, including Managed C++. It isn't C++. It's C++
with some necessary extensions. Read more about it on Microsoft Web
site.

I don't see the need for such "universal environment". Do you?

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 30 '06 #2
Andrzej wrote:
That is like Java but only for C/C++ programs.
Java is hardly a good example.
Is there somewhere such project ?
Yes, "managed C++" is one flavor of Microsoft's CLR system.

Yet another bad example of treating Java as a good example...

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jul 30 '06 #3
Phlip wrote:
Andrzej wrote:
>That is like Java but only for C/C++ programs.

Java is hardly a good example.
It is?
>Is there somewhere such project ?

Yes, "managed C++" is one flavor of Microsoft's CLR system.
However, it's not C or C++. It's more like C#, but with the syntax a little
closer to C++.
Yet another bad example of treating Java as a good example...
Well, if YOU say so, it must be true, even without giving any reason.

Jul 30 '06 #4
Andrzej wrote:
Greetings.

Is there any project of universal environment for running programs
written in C++ ? For example a programmer compiles program using
compilator and linker that produces universal executable file (not
system executable file) and then he starts that program using some kind
of emulator that can be implemented in any platform.
A PC can be emulated in "any" platform. So a program written in C++ and
compiled for some operating system that runs on a PC is, effectively,
universal.

Take a look at QEMU, VMware, etc.

http://en.wikipedia.org/wiki/Compari...rtual_machines

Jul 30 '06 #5
In article <ea**********@atlantis.news.tpi.pl>, tm*@praktisk.org
says...
Greetings.

Is there any project of universal environment for running programs
written in C++ ? For example a programmer compiles program using
compilator and linker that produces universal executable file (not
system executable file) and then he starts that program using some kind
of emulator that can be implemented in any platform.
That is like Java but only for C/C++ programs.
Is there somewhere such project ?
There have been attempts in (at least) two different directions.
Microsoft has a common language runtime that supports a couple
variants of C++. The first attempt was what they called "Managed
C++". The current version they call "C++/CLI". Unlike Managed C++,
C++/CLI appears to be C++ with conforming extensions.

Quite a while ago (in the '80s) DCE tried to create something a bit
different -- a universal executable format that would be translated
to native executable code at load time. A fair number of companies
put quite a bit of effort into it, but I don't believe there was ever
a real implementation (though IIRC, the work for this formed the
basis of DEC's environment for executing x86 code on the Alpha).

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 30 '06 #6
In article <MP************************@news.sunsite.dk>,
jc*****@taeus.com says...

[ ... ]
Quite a while ago (in the '80s) DCE tried to create something a bit
Oops -- that was "OSF" rather than "DCE" (DCE was another OSF
project).

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 30 '06 #7
In article <ea**********@atlantis.news.tpi.pl>,
Andrzej <tm*@praktisk.orgwrote:
Greetings.

Is there any project of universal environment for running programs
written in C++ ? For example a programmer compiles program using
compilator and linker that produces universal executable file (not
system executable file) and then he starts that program using some kind
of emulator that can be implemented in any platform.
That is like Java but only for C/C++ programs.
Is there somewhere such project ?
Several people have mentioned Microsofts C++/CLI. Seems to me though
this is far from a "Universal environment".
Jul 30 '06 #8
In article <da****************************@news.west.earthlin k.net>,
da******@earthlink.net says...

[ ... ]
Several people have mentioned Microsofts C++/CLI. Seems to me though
this is far from a "Universal environment".
Yes and no -- Microsoft (predictably) supplies the CLI only for their
own OSes, but at least in theory it could be supplied for others --
and the Mono project is at least attempting to do exactly that.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 30 '06 #9

"Andrzej" <tm*@praktisk.orgwrote in message
news:ea**********@atlantis.news.tpi.pl...
Greetings.

Is there any project of universal environment for running programs written
in C++ ? For example a programmer compiles program using compilator and
linker that produces universal executable file (not system executable
file) and then he starts that program using some kind of emulator that can
be implemented in any platform.
That is like Java but only for C/C++ programs.
Is there somewhere such project ?
Define "any platform".

Isn't that the idea behind writing "portable" C++ code, so that the code can
be compiled on any platform for which you have a conforming C++ compiler?
Why partially compile on one platform, only to have to have some kind of
emulator or translator do the last step for you on each platform you want to
use?

-Howard

Jul 31 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
0
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
19
by: Vijay Kumar R Zanvar | last post by:
Hi clc, I want to know few examples of freestanding environments. -- "There's money in this case, Watson," he continued, glancing out of the window, "if there is nothing else." - A Scandal...
33
by: news.microsoft.com | last post by:
To Microsoft and fellow MSDN Universal subscribers... Regarding new MSDN Universal (I mean Premier) price and level changes: 1) Way too expensive for the small and medium developer Universal...
4
by: Peter Kirk | last post by:
Hi I would like to ask a little bit about the value Environment.Newline: what is it and what is the point of it? Ok, I can see in the docs that it represents "newline" for the current platform -...
0
by: s99999999s2003 | last post by:
hi in my environment, besides shell scripts written for sys admin tasks, there are shell scripts that call java programs which in turn will do various processing like connecting to databases and...
2
by: Bjarne | last post by:
Dear all, although being a user of PHP and other scripting-languages for years, I have not taken part in any large projects based on PHP. Thus, I don't really know how real PHP-applications are...
4
by: Kirk Wolf | last post by:
I apologize if this is available in a FAQ somewhere. My question is this: The DB2 Universal Driver jars are shipped with DB2 for z/OS (db2jcc.jar and db2jcc_license_cisuz.jar). If a developer...
1
by: replysonika | last post by:
Hello, I run a Java app with subprocess from Python script. This python script is called from another Python Wrapper. python = subprocess.Popen(, stdout=subprocess.PIPE,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.