PIXNET Logo登入

nix

跳到主文

Seize...

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 3月 12 週三 200808:46
  • Building a cross compiler manually

1. Build binary utilities
2. Build bootstrap compiler without glibc
3. Build C library
4. Rebuild compiler with glibc
(繼續閱讀...)
文章標籤

nix 發表在 痞客邦 留言(0) 人氣(523)

  • 個人分類:Compiler
▲top
  • 2月 15 週五 200810:51
  • Building a cross compiler with buildroot

Build a cross compiler for nommu architecture and the cross compiler should be able to generate excutables with ELF or bFLT file format.
OS: Ubuntu 7.10
Linux Kernel: 2.6.22-14-generic
buildroot version: latest svn version
(繼續閱讀...)
文章標籤

nix 發表在 痞客邦 留言(0) 人氣(2,528)

  • 個人分類:Compiler
▲top
  • 2月 13 週三 200810:41
  • Building and installing uClibc

Platform: i386
OS: Linux
1. Download the latest uClibc source code from http://www.uclibc.org/downloads/ and uncompress the file
2. Configure and install uClibc
(繼續閱讀...)
文章標籤

nix 發表在 痞客邦 留言(0) 人氣(1,079)

  • 個人分類:Compiler
▲top
  • 2月 11 週一 200810:35
  • Building and installing a native GCC compiler

Reference data: The Definitive Guide to GCC, second edition, William von Hagen
Environment: Ubuntu 7.10
Prerequisite: Prepare about 1.5 GB free disk space for building and installing GCC.
1. Install essential utilities (root)
apt-get install bash binutils bison dejagnu flex gcc g++ gnat make tar tcl(8.4) expect gperf autoconf automake texinfo gettext gfortran gcj autogen
(繼續閱讀...)
文章標籤

nix 發表在 痞客邦 留言(0) 人氣(852)

  • 個人分類:Compiler
▲top
  • 12月 28 週五 200708:14
  • Basic Introduction - gcc

By default, gcc compiles the source code, assembles the assembly language code the compiler produces, and invokes the UNIX loader, Id, to produce an executable file.Preprocessing: This step resolves directives like #define, #include, and #if. Like many UNIX systems, gcc invokes a separate utility called cpp to do the preprocessing.Compilation: This produces assembly language from the input files; since the assembler is usually invoked right away, the output is not normally saved in files.Assembly: This takes the assembly language as input and produces object files with extensions. While some compilers build in the assembly capability, gcc does it by internally invoking a separate utility called the assembler, gas. GNU assemblers aren't available for all architectures; if the GNU assembler isn't available, gcc invokes the "native" assembler (as).Linking: This is the final stage, where the modules are placed in their proper places in the executable file. Library functions that the program refers to are also placed in the file. (Systems with shared libraries use a slightly more complicated method.)
UNIX compilers perform this phase by internally invoking the linker, which is called ld
.gcc also cleans up by deleting any object files that it created from source files (but not any pre-existing object files that you specified on the command line).ld stands for "link editor" initially, but we haven't heard anybody use this term for years. In some early UNIX documentation, ld is also called a "loader," which can be confusing because most people think of loading as reading the executable file into memory at run time.General options:
(繼續閱讀...)
文章標籤

nix 發表在 痞客邦 留言(0) 人氣(1,791)

  • 個人分類:Compiler
▲top
1

GNU

Firefox

Ubuntu

Free Software Foundation

Pentax 645D

我的地盤

nix
暱稱:
nix
分類:
數位生活
好友:
累積中
地區:

文章分類

  • Algorithms (3)
  • Compiler (5)
  • Computer Architecture (1)
  • Computer Language (1)
  • Funny Story (6)
  • GNU (2)
  • Life (112)
  • Linux (8)
  • make (4)
  • Operating System (16)
  • Reading (18)
  • Share (15)
  • Uboot (1)
  • VirtualBox 2.0.2 (1)
  • VMware Workstation 6 (4)
  • Memory Diary (0)
  • 未分類文章 (1)

近期文章

  • 20120226 - 古坑華山50公里超馬
  • 20120107 - 泰雅盃大腳丫森林馬拉松
  • 20111231 - 中潭公路馬拉松
  • 20111101 - 大阪馬拉松第4天
  • 20111030 - 大阪馬拉松第3天
  • 20111029 - 大阪馬拉松第2天
  • 20111028 - 大阪馬拉松第1天
  • 20111023 - Finger Lakes & Watkins Glen State Park
  • 20111022 - Letchworth State Park
  • 20111016 - Niagara Falls

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章彙整