General :: ARM Multicore Programming And Its Compilation Method ?
Apr 8, 2010
I wish to know that which gcc release version had support on ARM 9 multicore system by using pthread library for its parallelizing method on ecos rtos.I assume that the compiler that support the single ARM 9 processor will surely compile its multicore version also.But i need a clarification about it.It is good if you give a article or provide a suitable link on the ARM multicore programming and its compilation method
What i meant was, in a multicore system with 'n' number of cpu's, will each cpu have its own linux kernel installed, or will all cpu's have a copy of the same kernel image? Another question regarding multicore is kernel tracing. Since tracing works at the kernel level, then should i perform tracing for each cpu's seperately or kernel tracing can be performed as a whole for all cpu's put-together?
i am working with ad hoc network but the problem is not getting any good documentation of how to compile c++ code then how to add the code into Tcl intrepreter and how to work with make file. i want to run my own algorithm using c++ and then want to incorporate it into tcl interpreter and then want to run.
I had been working on a CPP code for sometime now, without being aware that some parts of its code, especially security related were not being compiled. Problem was like my product did not work for SSL mode. On analysis, I found that some part of CPP codes inside a switch(ENABLE_SSL_LIBRARY)were not getting compiled at all. And also that this gets set when we do newgrp crypto command on the box. This left me without lots of doubts. I wanted to understand how these switches work and if this switch was propreitary to my code or something related to Linux.
My questions now are: 1. Switches like the one mentioned above, are they user defined, for my particular code or are they related to Linux/GCC or makefiles? 2.If a user can define such switches to control code compilation, then need to know the concepts/procedures behind it. How is it done ?
Kindly excuse if these are very very basic. But since I could not get proper stuffs on google, I thought I should ask some experts here who could either explain me or point me to appropriate resources (links of articles / tutorials)
I want to compile the the source code given in a well known unix programming book(stevens) .I downloaded the codes but unable to build it ,giving me an errorerror: stropts.h: No such file or directoryI don't know what to do....I am using fedora 11 latest gcc in the system. I also try to include the search path which include a file -I./usr/include/xulrunner-sdk-1.9.1/system_wrappers but itI open the header file and the definition is there #include_next<strops.h>so ultimately there is not the original file
I'd like to create a target named "debug" or something similar which will use some special optimization flags useful when debugging (for example -ggdb). At the moment my makefile is neat (which I like) and looks like
i got this simple example of a code, its basicly Anjuta Gtkmm empty project. [URL] and trying to connect button signal to a function at line 67, however i receive errors during compilation, and i dont know what's wrong error output [URL]
I am not a programmer. But I feel safe enough to edit a file (afteracking it up of course.)I am using Arch with Enlightenment (E17.) I installed fwbuilder. Now when I click on the tutorial button it would not start my browser at all. The terminal gave this error;
Code: /usr/bin/xdg-open: line 478: firefox: command not found /usr/bin/xdg-open: line 478: mozilla: command not found
I want to encrypt a text using rsa encryption method. I did it using command openssl but i want it using my library api, the library api is as, int rsa_calc (unsigned char * msg, unsigned char * mod, int count, int exp, unsigned char result); I can't understand how i input public key (.pem file) and what will be the modulus (unsigned char * mod) and exponent (int exp) for any text.Is there any kind of formula to calculate modulus and exponent of the text.
I wrote a code for login verification..I got output with GET. But I need output with POST since it is more secure. Any error in my code.
javascript code: var xml; function verifyusernamepasswd(pass) { //pass is password that will be passed as parameter xml=new XMLHttpRequest(); var url="http://localhost/loginvalidate.php"; var para="q="+username+"&p="+pass;//username is global xml.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xml.setRequestHeader("Content-length", para.length); xml.setRequestHeader("Connection", "close"); xml.open("POST",url,true); xml.onreadystatechange=statechanged1; xml.send(para); } .....
The verification does not return anything, cos my alert is not displayed at all.
I was trying to program using fork(). The objective of this code is to
1. I am activating a process A - SubSuctionMotors. 2. Process A is going to stop with either of this condition a) Switch is activated - swret=1 b) Time allowed has expired 3. Stop the process A.
[Code]...
1. We purposely force the switch to be inactive to test the child process (timer), whether after 2 seconds the motor stop. It turns out to be successful in first few attempts. After some while, the program hang, nothing is executed anymore and the program is not exit or terminated. What can cause the program to hang?
2. We tried to stop motor by switch activation (if the switch is to be successfully activated, the time it takes will always be shorter than the timer allowed time). However, the program did not seems like noticing the switch has been activated, and it just stop the motor according to timer. Why it behave this way?
I am experiencing a multicpre problem with fedora14 / kernel 2.6.35.6-45.fc14.x86_64 #1 SMP. (standard from the distro). The host has a total of 2 cores .yet a virtual machine started with 'smp 2' ( or xml : <vcpu>2</vcpu>) will not run on 2 pyhs cores . it will use just 1 core ('top' at the host shows 100%cpu while running an endless loop process on the VM) and libvirt 'virsh vcpuinfo <vm name>' shows only 1 physical cpu used (although 2 vcpus are used : 0, 1) The kernel seems to be an SMP one ( so says the uname -a . what does '#1 SMP' mean ?) . Am I missing something ? same XML on a DEBIAN machine will run the VM with 2 phys cores as should although the host there has 4 cores (>2)Should I recompile the kernel src with some addtional flag ?
I've got an intel i7 920 CPU. It has 4 cores, but thanks to hyper threading technology each core could run 2 threads so in /proc/cpuinfo it shows "8 processors".
1. what would be the optimal -j flag when compiling programs on my CPU. I've come across -j7. Why 7?
2. Where and what would I put this flag to make it permanent (eg. .bashrc?)?
I'm wondering if anyone is having a similar issue to what I'm experiencing. openSuSE 11.2 was very fast on my system. Since installing openSuSE 11.3, I've been experiencing many short term hangs where I'll lose control of the mouse for a few seconds (usually about 2-5) and the system will do nothing. I don't have unusual load during these time periods and I don't really see any spikes during these periods. If I leave a cpu monitor active, I can see a very very light spike one core0 when it happens, but the mouse and keyboard (and seemingly the whole desktop) hang during this spike so I can't see what's causing it, if that's really the culprit.
I am almost suspecting that I'm experiencing an issue with interrupts... since it seems that everything is hanging for a few seconds, then coming back to life. It does seem to happen more often when I'm resizing or minimizing windows... but that's about all I can say as it also seems pretty random.Here's some basic info on my hardware:ASUS M3A78 Pro motherboardAMD Phenom(tm) 9950 Quad-Core ProcessorGeForce GTX 260G15 Keyboard and MX revolution mouse (just in case USB interrupts turn out to be the issue)So, is anyone else experiencing a similar issue? Maybe we can narrow down what we have in common. Oh, I'm running x86_64.
I have recently loaded the new LTS SERVER 10.04 release and it loaded without errors. My only issue is that it does not seem to correctly identify the Dual Cores for each processor. (The HP xw9300 I have has two hardware CPUs - each one being Dual-Core - so there should be a total of 4 CPUs recognized - unless I am mistaken?) How I can debug the processor recognition for multi-core support to get the additional cores recognized.
My /proc/cpuinfo file looks like this: Code: xxxx@hostname:~$ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 37 model name : AMD Opteron(tm) Processor 248 stepping : 1 cpu MHz : 2194.452 cache size : 1024 KB ..... address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp
I was trying to write a graph plotting program with c++. I need to convert the infix expression from user to postfix expression for quick evaluation. However, the evaluation of postfix is kind of interpreted, and thus kind of slow for evaluating huge number of values. Say if I plot an implicit function the penalty is quite huge. Is there a way that I can compile the infix expression from my running graph plotting application for high speed evaluation.
The following declaration is presenting a compilation problem using Xcode on OS X: ostringstream cmd; The error is as follow: Implicit instantiation of undefined template 'std::basic_ostringstream<char, std::char_traits<char>,std::allocator<char> >; The exact same code will compile and run on Linux - same imports and everything. What could be causing the issue?
I am working on ubuntu right now and it is quiet easy to install firestarter firewall on ubuntu thru GUI interafce but my requiremnet is to install firewall on target (powerpc 8560 ),so i have to compile firestarter source for target powerpc (montavista linux) and installed it on target. I have downloaded firestarter-1.0.3.tar & .src.rpm file both but not able to compile it for my target which is powerpc (8560).
1.How to compile source code for powerpc ( I have environment created for ppc compilation but do not know how to modify the configure file to change the compiler) because it is compiling firestarter source code with gcc compiler bydefault i. e for host. How can i change the compiler " CC "? 2.What will be the executable created to be installed on target after compilation ? 3.Is the cross compilation for target is possible?
I'm trying to compile a fortran code (not my own and I don't know fortran well) and have been having some trouble as the compilation starts and then fails as the computer completely freezes (as in press power button freeze). I added 1.5Gb swap memory as the computer only has 1GB and then tracked the memory use as the process happened and it seemed that the swap wasn't even used. The memory usage hit 90% of the 1.Gb and the machine froze again. The compiler is gfortran
Just I need some clarification. Is there any different form compilation is for Intel ATOM processor? Its same like all other intel processors right? Or it has any different type of compilation should be followed for Intel atom processor?
In a chroot einvironment i am trying to compile gcc but is says that i need a newer version of glibc, but i have the newest version of it. i think somehow it trys to use the older glibc from the ubuntu install im makeing it on.