Develop and Download Open Source Software

GCC sample frontend

[view other images]

一通りの機能を網羅した GCC フロントエンドを作っていきます.
コンパイルには gcc 本体のソース (4.x 以降) が必要です.
開発ブログ : http://alohakun.blog7.fc2.com/blog-category-35.html

Would you recoomend this project?

LastUpdate:2009-04-14 16:42
Member:aloha [View]
Other Info.

Latest File Releases of GCC sample frontend

PackageVersionDateNotes
/ Change Log
binary0.0.1-22008-04-24 19:45Document / Document

bl-0.0.1 (base : gcc-4.2.1) build binary for linux

part 2 (for sourceforge's 100 MB limit)

blanguage0.0.12008-05-09 02:11Document / Document

This version sample gcc frontend can compile in gcc-core-4.3.0 or maybe latter (but very unstable !!)

test environment : gcc-4.3.0 only

Install example :

$ tar jxvf gcc-core-4.3.0.tar.bz2
$ tar jxvf bl-0.0.1-for-gcc-4.3.0.tar.bz2
$ mv bl gcc-4.3.0/gcc/
$ mkdir bl-build
$ mv bl-build
$ ../gcc-4.3.0/configure --prefix=/usr/local/build-gcc --enable-languages=bl --enable-checking=tree
$ make && make install

To support gcc 4.3.0, mostly code were contributed by SATO daisuke (QLeap).

for init builtin types and functions :

(mostly code from the c crontend)

bl.h, bl-builtins.c, and modified Make-lang.in

build environment0.0.12008-04-19 18:14Document / Document

a part of sample gcc frontend build environment for QEMU.
(FreeBSD 7.0 minimal install version)

minimal_frontend1.0.02008-05-07 00:31Document / Document

This is a minimal frontend sample.

For any input .bl file, this frontend only output an executable file or assembly source code correcponding to the following c source code :

int main() {return 0;}



For example :

$ cat null.bl
$ ../bin/gcc null.bl
$ ls
a.out null.bl
$ ./a.out
$ ../bin/gcc -S null.bl
$ cat null.s
.file "null.bl"
.text
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
movl $0, %eax
popl %ebp
ret
.size main, .-main
.ident "GCC: (GNU) 4.3.0"
.section .note.GNU-stack,"",@progbits

Build example

$ mkdir -p /usr/local/build-gcc/build-bl
$ tar jxvf gcc-4.3.0.tar.bz2 -C /usr/local/build-gcc
$ tar jxvf bl-minimal-4.3.0.tar.bz2 -C /usr/local/build-gcc/gcc/
$ cd /usr/local/build-gcc/build-bl
$ ../gcc-4.3.0/configure --prefix=/usr/local/build-gcc/build-bl --enable-languages=bl --enable-checking=all --disable-nls --disable-bootstrap
$ make && make install

  • Review
  • News
  • Forum
  • Ticket
  • RSS

Project ReviewsProject Review by Users

Last 3 reviews

No Reviews

Latest Project News for GCC sample frontend

No Project News

latest Forum Posts for GCC sample frontend

Post DateTitleForum NameWritten by
2007-09-21 01:16Welcome to HelpHelpAnonymous
2007-09-21 01:16Welcome to Open DiscussionOpen DiscussionAnonymous

Latest tickets for GCC sample frontend

Not Tickets

RSS Feeds List for GCC sample frontend

URL: http://sourceforge.jp/projects/blanguage/news/rss
URL: http://sourceforge.jp/projects/blanguage/releases/rss
URL: http://sourceforge.jp/projects/blanguage/reviews/rss
URL: http://sourceforge.jp/projects/blanguage/wiki/!feeds/diff
URL: http://sourceforge.jp/projects/blanguage/wiki/!feeds/list
URL: http://sourceforge.jp/export/rss_milestone.php?group_id=3098
URL: http://sourceforge.jp/projects/blanguage/history/rss

Software Map

Software Download Map is not Not defined

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.