473,414 Members | 1,781 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,414 software developers and data experts.

C compiler and multi-core support

Hello all, I'm completely new in theory of C compiler and it's support
for multi-core hardware. Does anybody know whether compiler for
multi-core and SMP/AMP/BMP does need some special internal features?
I'm not talking right know about libs, just translation of the C code
into the instructions. I still understand that the most responsibility
is on the OS side and application even doesn't need to be recompiled.
Just special libs for SMP/BMP/AMP need to be linked? Is that correct or
am I wrong? How is it in the case there is no OS running, just basic
firmware? Martin

Feb 17 '06 #1
4 2265
Martinfnp a écrit :
Does anybody know whether compiler for
multi-core and SMP/AMP/BMP does need some special internal features?


I think you only need a SMP-enabled kernel.
As I don't know much about that stuff, I may be wrong though.
Feb 17 '06 #2
I've found OpenMP which is probably coming as an standard. Today Intel
has it implemented in their compilers. You simply write app once and
then you decide whether it should be compiled for multi-core and up to
which level of the parallelism. It's really looking cool. Does anybody
know if somebody else is working to implement OpenMP into their
compilers? I just don't want follow dead thread. www.openmp.org

Feb 17 '06 #3
Martinfnp wrote:
I've found OpenMP which is probably coming as an standard. Today Intel
has it implemented in their compilers. You simply write app once and
then you decide whether it should be compiled for multi-core and up to
which level of the parallelism. It's really looking cool. Does anybody
know if somebody else is working to implement OpenMP into their
compilers? I just don't want follow dead thread. www.openmp.org

Sun compilers support OpenMP.

--
Ian Collins.
Feb 17 '06 #4
On 17 Feb 2006 10:37:21 -0800, in comp.lang.c , "Martinfnp"
<ma*******@yahoo.com> wrote:
Hello all, I'm completely new in theory of C compiler and it's support
for multi-core hardware. Does anybody know whether compiler for
multi-core and SMP/AMP/BMP does need some special internal features?


This is completely offtopic here since the topic is the C Language.
You would need to ask in groups specialising in whatever compiler
and/or OS you want to think about.
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Feb 17 '06 #5

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

Similar topics

5
by: Marijn | last post by:
I'd like to know how compilers usually handle static variables that are declared inside a function (as opposed to static class-members). Like in: int counter(){ static int c=0; ++c; return c;...
6
by: jon morgan | last post by:
Hi, I get random errors raised when compiling a multi-project application. For example the compiler will claim that a class has no constructor when it does. If I replace the first line of the...
8
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting...
8
by: madhu.mys | last post by:
Hi, According to you, Which is the best C++ compiler for windows ? Which compiler is least buggy and generate Optimized code ?
25
by: Mohd Hanafiah Abdullah | last post by:
Axiomatic Solutions Sdn Bhd announces the availability of AMPC version 1.2. You can purchase AMPC online now at: http://www.axiomsol.com/hedesu/shopping/index.php Major Changes -------------...
15
by: Anton Gavrilov | last post by:
Hi all, I seek your advice on where to start if I want to write a compiler for a toy C-like language I invented (or, rather, am in the process of inventing). Yes, yes, I know I'm crazy and the...
233
by: E. Robert Tisdale | last post by:
I have access to a wide variety of different platforms here at JPL and they all have pretty good C 99 compilers. Some people claim that they have not moved to the new standard because of the...
17
by: Student | last post by:
Hi All, I have an assignment for my Programming language project to create a compiler that takes a C++ file as input and translate it into the C file. Here I have to take care of inheritance and...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
2
by: eerpini | last post by:
On Mon, 2008-11-17 at 00:03 -0800, vaib wrote: I see that you have posted the same in comp.lang.c , and you also mentioned that you wanted to design a C compiler front end then why post it again in...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.