To be even more explicit: MicroBlaze is an interated-instruction CPU
implemented in FPGA circuits, like a Pentium. uCLinux is a Linux kernel
OS that can run on CPUs without MMU controllers, like the MicroBlaze
"soft CPU". A C compiler runs on uCLinux like any uCLinux app would. If
it's directed to produce "native" instructions (as opposed to
"cross-compiling", if the compiler can do that, for other CPUs like eg.
a Pentium or PowerPC), it will compile a C source file into MicroBlaze
instructions and uCLinux API calls. The resulting binary will therefore
run under the uCLinux OS on the MicroBlaze CPU on FPGA hardware. Change
any of the OS, CPU or underlying HW, and you have to compile your SW,
and possibly change its API calls, to suit the new environment.
On Fri, 2005-12-02 at 17:53 +0900, Yasushi SHOJI wrote:
At Fri, 02 Dec 2005 12:10:56 +0800,
Jag Glifonea wrote:
In relation with this I would like to know if it is possible to run a C
source code via the microblaze. I mean can I compile a C source code
then the uClinux will create instructions for the microblaze to perform
the algorithm described by the C code?
huh? are you tring to run a executable compiled from C on uClinux on
microblaze? if so, the answer is yes.
uClinux does not _generate_ mb inst. at run time. so if you are
thinking about uclinux as some VM, the answer is no.
hope this helps.
--
yashi