gcc
文章平均质量分 64
alex_mianmian
这个作者很懒,什么都没留下…
展开
-
printf becomes puts
Firstly, let's read following simple code:#include <stdio.h>int input_number(void){ printf("please input numbers:\n"); return 0;}int output_number(void){ printf("check my implementation"); return 0;}int main原创 2021-01-22 22:01:26 · 81 阅读 · 0 评论 -
Hide symbol of dynamic library
os_api.c#include <stdio.h>void func_os_api(void){ printf("I am OS API\n");}os_api.h#ifndef __OS_API_H__#define __OS_API_H__extern void func_os_api(void);#endifcall_os_api.c#include <stdio.h>#include "os_api.h"v...原创 2020-08-27 22:24:16 · 140 阅读 · 0 评论 -
build gcc on X86
refer to https://gcc.gnu.org/install/Download GCC source:1. svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk2.enter gcc-trunk and run download_prerequisties:gcc-trunk>contrib/download...原创 2018-10-30 20:35:47 · 146 阅读 · 0 评论 -
c语言中const volatile关键字 和 elf section的关系
编译器:arm-none-eabi-gcc1. const and rodata section先看c代码,apb_psc_table[8] 是个常量数组。static const u8 apb_psc_table[8] = { 0, 0, 0, 0, 1, 2, 3, 4 };unsigned long clock_g原创 2016-01-24 12:41:36 · 590 阅读 · 0 评论 -
APT source of GCC on Ubuntu
On Ubuntu 14.04, we can use APT to get and install software. However APT needs source which is a server contains the software.And Ubuntu has a default source list at /etc/apt/source.list . But some ...原创 2019-05-14 16:11:03 · 261 阅读 · 0 评论 -
gcc BFD assertion fail elf32-arm.c:8784 when build u-boot
When build u-boot, get a link error BFD assertion fail elf32-arm.c:8784 as following.LDS u-boot.ldsLD u-boot/opt/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueab...原创 2019-05-28 16:45:49 · 1288 阅读 · 0 评论