Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   C compiler and multi-core support (http://www.velocityreviews.com/forums/t441389-c-compiler-and-multi-core-support.html)

Martinfnp 02-17-2006 06:37 PM

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


loufoque 02-17-2006 07:16 PM

Re: C compiler and multi-core support
 
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.

Martinfnp 02-17-2006 07:29 PM

Re: C compiler and multi-core support
 
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


Ian Collins 02-17-2006 08:43 PM

Re: C compiler and multi-core support
 
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.

Mark McIntyre 02-17-2006 09:01 PM

Re: C compiler and multi-core support
 
On 17 Feb 2006 10:37:21 -0800, in comp.lang.c , "Martinfnp"
<martinfnp@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 =----


All times are GMT. The time now is 02:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.