I'm trying to test a cross compile using Terry Guo's gcc-arm-none-eabi. In a nutshell, here are the steps to install on Ubuntu: sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded sudo apt-get update sudo apt-get install gcc-arm-none-eabi The problem I am having is I can't find the documentation (or I'm doing something wrong). I know I can't ask for documentation
我试图用Terry Guo的gcc-arm-none-eabi来测试一个交叉编译。 简而言之,下面是在Ubuntu上安装的步骤: sudo add-apt-repository ppa:terry.guo / gcc-arm-embedded sudo apt-get update sudo apt-get install gcc-arm-none-eabi 我遇到的问题是我无法找到文档(或者我做错了什么)。 我知道我不能要求提供文件或其他非现场资源,所以我会切入正题: 什么是编译器的名称? 编译器位于何处? arm-eabi头文件位于
I am trying to compile a hello world program in C on a Linux 64-bit machine. I am using an ARM cross compiler to load my application onto an ARM processor. However, when compiling the code using arm-none-eabi-gcc -o hello hello.c I get a series of errors: /home/dico/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): In function
我正尝试在Linux 64位机器上用C语言编译hello世界程序。 我正在使用ARM交叉编译器将我的应用程序加载到ARM处理器上。 但是,使用arm-none-eabi-gcc -o hello hello.c编译代码时,出现一系列错误: /home/dico/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm- none-eabi / lib / libc.a(lib_a-exit.o):在函数exit': exit.c:(.text.exit+0x2c): undefined reference to _exit'/
i'm trying to debug a C program, which runs on an ARM926EJ-S rev 5 (v5l) . The software was cross-compiled (and is statically linked) with the std. arm-linux-gnueabi compiler (intalled via synaptic). I run Ubuntu 13.04 64bit . On the device is a Busybox v1.18.2 . I successfully compiled gdbserver (with host=arm-linux-gnueabi ) and gdb (with target=arm-linux-gnueabi ) and can start my pro
我试图调试一个C程序,它运行在ARM926EJ-S rev 5(v5l)上 。 该软件与std 交叉编译 (并静态链接)。 arm-linux-gnueabi编译器(通过突触插入)。 我运行Ubuntu 13.04 64bit 。 在设备上是Busybox v1.18.2 。 我成功地编译了gdbserver(使用host = arm-linux-gnueabi )和gdb(使用target = arm-linux-gnueabi )并且可以通过本地运行的gdb在嵌入式设备上启动我的程序...现在我的问题是,没有适当的回溯输出。 gdb的消息
I have written simple Hello world program and compiled it with gcc-arm-linux-gnueabi compiler. It compiles well but when i try to execute it on ARM machine it complains "no such file or directory". I think gcc-arm-linux-gnueabi is for embedded Linux only due to e(mbedded)abi. Is it different from ARM Linux ABI? Please help me to solve this problem code is here #include "stdio.h"
我编写了简单的Hello World程序,并使用gcc-arm-linux-gnueabi编译器进行编译。 它编译得很好,但是当我尝试在ARM机器上执行它时,它抱怨“没有这样的文件或目录”。 我认为gcc-arm-linux-gnueabi仅适用于嵌入式Linux,因为e(mbedded)abi。 它与ARM Linux ABI不同吗? 请帮我解决这个问题 代码在这里 #include "stdio.h" int main(void) { printf("Hello world !n"); return 0; } 编译为 arm-linux-gnueabi-gcc
I am compiling the below code with " -nostdlib ". My understanding was that arm-none-eabi-gcc will not use the _start in "crt0.o" but it will use the user defined _start . For this I was expecting to create a start.S file and put the _start symbol. But if I compile the below shown code without the _start symbol defined from my side, I am not getting any warning. I was exp
我正在用“ -nostdlib ”编译下面的代码。 我的理解是arm-none-eabi-gcc不会在“crt0.o”中使用_start,但它会使用用户定义的_start 。 为此,我希望创建一个start.S文件并放置_start符号。 但是如果我编译下面显示的代码而没有从我身边定义_start符号,我没有得到任何警告。 我期待“警告:找不到入门标志_start;” 问题: 1)为什么我没有收到警告? GCC从哪里获得_start符号? 2)如果gcc从某个地方得到了一个文件的_st
I am new to embedded systems and want to learn more, I am currently optimizing a software with regards on the footprint for an ARM embedded system, and are wondering, the header files that you include in your source files. Where are they put? Right now I am just using a software (OVP) to simulate the ARM hardware platform but in real hardware, you have to put the header files somewhere right
我是嵌入式系统的新手,想了解更多信息, 我目前正在优化一个软件,关于ARM嵌入式系统的封装,并且想知道,你在源文件中包含的头文件。 他们放在哪里? 现在我只是使用软件(OVP)来模拟ARM硬件平台,但在真正的硬件中,您必须将头文件放在正确的位置? 就像在gcc上的高清标准库一样。 我们是否也必须将这个库插入到嵌入式机器中? 空间有限! 有什么办法可以最小化图书馆的大小? 谢谢! 例 #include <stdio.h&
I have this very simple code: #include <stdio.h> #include <math.h> int main() { long v = 35; double app = (double)v; app /= 100; app = log10(app); printf("Calculated log10 %lfn", app); return 0; } This code works perfectly on x86, but doesn't work on arm, on which the result is 0.00000. Some ideas? Other info: Operating system: linux 3.2.27 I build
我有这个非常简单的代码: #include <stdio.h> #include <math.h> int main() { long v = 35; double app = (double)v; app /= 100; app = log10(app); printf("Calculated log10 %lfn", app); return 0; } 这段代码在x86上完美工作 , 但在arm上无效,结果为0.00000。 一些想法? 其他信息: 操作系统:linux 3.2.27 我用ct-ng构建arm工具链:arm-unknown-linux-gnueabi- libc
I have an Action that receives a class with a dictionary in its properties: public ActionResult TestAction(TestClass testClass) { return View(); } public class TestClass { public Dictionary<string, string> KeyValues { get; set; } } If I do a post to my action with the following JSON: { "KeyValues": { "test.withDoT": "testWithDot" } } The key in my dictionary is stripped
我有一个Action在其属性中接收一个包含字典的类: public ActionResult TestAction(TestClass testClass) { return View(); } public class TestClass { public Dictionary<string, string> KeyValues { get; set; } } 如果我使用以下JSON对我的操作发布帖子: { "KeyValues": { "test.withDoT": "testWithDot" } } 我的字典中的关键字被剥离并没有任何价值。 尝试没有点的作品。 我如何使用MVC在
The OpenMP 'parallel' construct and 'SIMD' construct (new in revision 4.0) define the reduction clause which tells the compiler which variable the reduction is performed on and what is the reduction operator. But why does the compiler need the programmer to tell it this information? GCC, for example, has the capability of identifying reductions without getting any help from the
OpenMP'parallel'构造和'SIMD'构造(修订版4.0中的新增内容)定义了reduction子句,它告诉编译器哪个变量被执行,以及reduce操作符是什么。 但为什么编译器需要程序员告诉它这些信息呢? 例如,GCC有能力在没有得到编程人员帮助的情况下确定减少(见这里和这里)。 如果没有指定约简条款,是否有任何循环的例子不能成为并发的? 简化机制通过消除同步点并以放宽内存视图的一致性为代价来提高并行应用程序的
When I ran ReSharper on my code, for example: if (some condition) { Some code... } ReSharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the following correction: if (!some condition) return; Some code... I would like to understand why that's better. I always thought that using "return" in th
当我在代码上运行ReSharper时,例如: if (some condition) { Some code... } ReSharper给了我上述警告(反转“如果”声明以减少嵌套),并建议进行以下更正: if (!some condition) return; Some code... 我想明白为什么这样更好。 我一直认为在方法中使用“返回”是有问题的,有点像“goto”。 方法中的回报并不一定是坏事。 如果代码的意图更清晰,最好立即返回。 例如: double ge