Topic: Computers Fun with tcc and binfmt

(link)

2:58pm, Thursday 28 October 2004

root@charon:~# apt-get install tcc binfmt-support
<snip>
root@charon:~# cat /usr/local/bin/tccrun
#!/bin/bash
exec /usr/bin/tcc -run "$@"
root@charon:~# update-binfmts --install C /usr/local/bin/tccrun --extension c

dh3@charon:~$ cat hello.c
void main(void) {
        printf("hello, world!\n");
}
dh3@charon:~$ chmod a+rx hello.c
dh3@charon:~$ ./hello.c
hello, world!
dh3@charon:~$

back to main

<-
 Topic:    
->

Powered by Personal Weblog.

April 2024
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May

[RSS]

 


 


Dave Holland <dave@biff.org.uk>
$Id: index.php,v 1.75 2010-07-09 22:15:04 dave Exp $