[技術] 各家Toolchains的比較

Written on 4:04 下午 by Yu Lai

一般而言,
在開發Embedded System時大都需要用到不同平台的cross-compiler與Toolchains。
而在elinux.org有一篇介紹各家Toolchains的文章,就轉來參考囉。

Ref: http://elinux.org/Toolchains

以下是常見的幾個Toolchains的說明:

CodeSourcery
CodeSourcery develops Sourcery G++, an Eclipse based Integrated Development Environment (IDE) that incorporates the GNU Toolchain (gcc, gdb, etc.) for cross development for numerous target architectures. CodeSourcery provides a "lite" version for ARM, Coldfire, MIPS, SuperH and Power architectures. The toolchains are always very up to date. CodeSourcery contributes enhancements it makes to the GNU Toolchain upstream continually, making it the single largest (by patch count) corporate contributor.

DENX ELDK
The DENX Embedded Linux Development Kit (ELDK) provides a complete and powerful software development environment for embedded and real-time systems. It is available for ARM, PowerPC and MIPS processors and consists of:
Cross Development Tools (Compiler, Assembler, Linker etc.) to develop software for the target system.
Native Tools (Shell, commands and libraries) which provide a standard Linux development environment that runs on the target system.
Firmware (U-Boot) that can be easily ported to new boards and processors.
Linux kernel including the complete source-code with all device drivers, board-support functions etc.
Xenomai - RTOS Emulation framework for systems requiring hard real-time responses.
SELF (Simple Embedded Linux Framework) as fundament to build your embedded systems on.
All components of the ELDK are available for free with complete source code under GPL and other Free Software Licenses. Also, detailed instructions to rebuild all the tools and packages from scratch are included.
The ELDK can be downloaded for free from several mirror sites or ordered on CD-ROM for a nominal charge (99 Euro). To order the CD please contact office@denx.de
Detailed information about the ELDK is available here.

Buildroot
Buildroot is a complete build system based on the Linux Kernel configuration system and supports a wide range of target architectures. It generates root file system images ready to be written to flash. In addition to having a huge number of packages which can be compiled into the image, it also generates a cross toolchain to build those packages from source. Even if you don't want to use buildroot for your root filesystem, it is a useful tool for generating a toolchain. It should be noted however that it only supports uClibc. If you want to use glibc, you'll need something else.

[技術] vim的方向鍵問題

Written on 11:25 上午 by Yu Lai

原來我用了那麼久的vi,
今天總算知道怎麼解決ABCD亂跳
與backspace不會刪除的問題。

解決方法:在.vimrc中設定

    set nocompatible
set backspace=2

[工具] 超好用網頁配色網站

Written on 11:03 上午 by Yu Lai

1、收錄了很多主題配色的方案
http://www.print100.com/hk/html/csi.aspx

2、選定你的主題色,輕輕一按就能幫你搭配合適的顏色,還能調節亮度與飽和度,非常專業喔
http://wellstyled.com/tools/colorscheme/index-en.html

3、只要輸入一個物品名稱(例如tree)就能產生相關顏色
http://colr.org/

4、選擇你的基調色,馬上給你16種配色
http://www.colorschemer.com/online.html

[工具] Source Insight with Artistic Style

Written on 5:18 下午 by Yu Lai

Windows平台下也有好多人都喜歡用SourceInsight編輯C/C++程序,但是SourceInsight沒有提供對代碼格式化的功能,如果將Artistic Style集成到SourceInsight中,那就可以為它擴展出代碼格式化的功能了。

假定AStyle.exe的目錄是"C:\ArtisticStyle\"。下面簡要地介紹下Artistic Style集成到SourceInsight中的方法。
1. 打開你的SourceInsight, 選擇菜單"Options-->Custom Commands-->Add", 輸入Artistic Style(可以隨便輸入一個名字)。
2. Run中輸入: C:\ArtisticStyle\Astyle.exe --style=linux --indent=tab %f
3. Dir留空,將Iconic Window, Capture Output, Parse Links in OutPut, File,then Line 四項前打上勾。
4. 然後點對話框中右側的按鈕“Menu”, Menu--->Menu-->View-->, 右側Insert, OK.
5. 此時在SourceInsight中的View菜單下多了個Style的子菜單選項,可以用它來對單個C/C++文件進行格式化。

[工具] E-Mail圖示產生器

Written on 11:07 上午 by Yu Lai

就是我右邊E-mail那個圖示的產生器囉,
在寫了前三篇後才發現忘了把這個Tool寫個Note啦。

http://services.nexodyne.com/email/

[工具] 筆記本產生器

Written on 11:02 上午 by Yu Lai

PocketMod 網站提供了一項非常有趣且特殊的服務,
您可以在線上設計自己的口袋型記事本,包含封面、
封底一共八頁,僅需使用一張 A4 的紙就可以完成。

http://www.pocketmod.com/app/index.html

[工具] 條紋背景產生器

Written on 11:00 上午 by Yu Lai

Stripe Generator 為一款很有趣的線上工具,
它能夠讓你在線上產生條紋樣式的背景。
可以設定的選項非常多,包含寬度、顏色、樣式、背景顏色、條紋方向等等。

http://www.stripegenerator.com/

[工具] 域名圖示產生器

Written on 10:55 上午 by Yu Lai

就像我blogger右邊Link那邊E-mail的圖示一樣,
這個可以產生Domain Name的圖示。

http://phorum.com.tw/Generator.aspx

[工具] 碩、博士論文致謝詞產生器

Written on 11:47 下午 by Yu Lai

http://tfanalysis.zooserver.net/jotting/acknowledge.php

哎呀,好物啊~當初在寫論文時怎麼沒有這種東西可以用啊?

[技術] JavaScript Debug Utility

Written on 9:45 下午 by Yu Lai

http://www.isocra.com/articles/jsdebug.php
這是Script方式來達到debug的功能。
因為平時如果Script沒寫好連alert都跳不出來,
這個剛好避過這個問題。

如果偏好使用IDE的話,也有好用的Tool。
http://www.aptana.com/
Aptana的特點是可以以stand-alone方式執行,
也可以以plug-in方式執行於Eclipse。