| ###### |
|
|
| EXTRA_CFLAGS += -D_ATS_CCOMP_HEADER_NONE |
| EXTRA_CFLAGS += -D_ATS_CCOMP_PRELUDE_NONE |
| EXTRA_CFLAGS += -D_ATS_CCOMP_PRELUDE_USER=\"linux/H/pats_ccomp.h\" |
| EXTRA_CFLAGS += -D_ATS_CCOMP_EXCEPTION_NONE |
|
|
| ###### |
|
|
| EXTRA_CFLAGS += -I${PATSHOMERELOC}/contrib |
|
|
| ###### The 'NONE' flags are needed to ensure that NO header files generated by the compiler are to be included. Instead, the following header file is used: ${PATSHOMERELOC}/contrib/linux/H/pats_ccomp.h If you want to try the code, then please make sure that you first git-clone the following package: https://github.com/githwxi/ATS-Postiats-contrib Then set PATSHOMERELOC to be the name of the directory containing the above package. For the rest, you just need to follow what is said in the book: http://www.tldp.org/LDP/lkmpg/2.6/ Please feel free to raise your questions here. I plan to implement a simple char driver next time. Cheers! |
Hi,
If you are reading this message, then you have probably heard or read that ATS
is good for safe systems programming. But you may not have seen low-level systems
code written in ATS, right? There is a reason for this obvious irony for writing such code
in ATS is very challenging. It took us a long time to learn the ropes.
Now I want to write a little bit on how ATS can be used effectively to implement low-level
systems. My focus here is on implementing device drivers for Linux. I will try to follow the
following book:
http://www.tldp.org/LDP/lkmpg/2.6/
[…]