From 8f02fd630f77630b140ff1c43cfe82b03b163759 Mon Sep 17 00:00:00 2001 From: regehr Date: Sat, 31 May 2008 20:18:32 +0000 Subject: [PATCH] add CIL machine descriptions to support safe tinyos --- tos/platforms/mica2/.platform | 25 +++++++++++++++++++++++++ tos/platforms/micaz/.platform | 25 +++++++++++++++++++++++++ tos/platforms/telosb/.platform | 25 +++++++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/tos/platforms/mica2/.platform b/tos/platforms/mica2/.platform index 8b52498b..f264e833 100644 --- a/tos/platforms/mica2/.platform +++ b/tos/platforms/mica2/.platform @@ -40,3 +40,28 @@ push( @includes, qw( push @opts, "-fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask" if !$with_scheduler_flag; push @opts, "-mingw-gcc" if $cygwin; +$ENV{'CIL_MACHINE'} = + "version_major=3 " . + "version_minor=4 " . + "version=avr-3.4.3 " . + "short=2,1, " . + "int=2,1 " . + "long=4,1 " . + "long_long=8,1 " . + "pointer=2,1 " . + "enum=2,1 " . + "float=4,1 " . + "double=4,1 " . + "long_double=4,1 " . + "void=1,1 " . + "fun=1,1 " . + "wchar_size_size=2,2 " . + "alignof_string=1 " . + "max_alignment=1 " . + "char_wchar_signed=true,true " . + "const_string_literals=true " . + "big_endian=false " . + "underscore_name=false " . + "__builtin_va_list=true " . + "__thread_is_keyword=true"; + diff --git a/tos/platforms/micaz/.platform b/tos/platforms/micaz/.platform index f8b6be67..33e6f51c 100644 --- a/tos/platforms/micaz/.platform +++ b/tos/platforms/micaz/.platform @@ -52,3 +52,28 @@ push( @includes, qw( push @opts, "-fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask" if !$with_scheduler_flag; push @opts, "-mingw-gcc" if $cygwin; +$ENV{'CIL_MACHINE'} = + "version_major=3 " . + "version_minor=4 " . + "version=avr-3.4.3 " . + "short=2,1, " . + "int=2,1 " . + "long=4,1 " . + "long_long=8,1 " . + "pointer=2,1 " . + "enum=2,1 " . + "float=4,1 " . + "double=4,1 " . + "long_double=4,1 " . + "void=1,1 " . + "fun=1,1 " . + "wchar_size_size=2,2 " . + "alignof_string=1 " . + "max_alignment=1 " . + "char_wchar_signed=true,true " . + "const_string_literals=true " . + "big_endian=false " . + "underscore_name=false " . + "__builtin_va_list=true " . + "__thread_is_keyword=true"; + diff --git a/tos/platforms/telosb/.platform b/tos/platforms/telosb/.platform index 27593f80..a3320113 100644 --- a/tos/platforms/telosb/.platform +++ b/tos/platforms/telosb/.platform @@ -51,3 +51,28 @@ push( @includes, qw( push @opts, "-fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask" if !$with_scheduler_flag; push @opts, "-mingw-gcc" if $cygwin; +$ENV{'CIL_MACHINE'} = + "version_major=3 " . + "version_minor=2 " . + "version=msp430-3.2.3 " . + "short=2,2, " . + "int=2,2 " . + "long=4,2 " . + "long_long=8,2 " . + "pointer=2,2 " . + "enum=2,2 " . + "float=4,2 " . + "double=4,2 " . + "long_double=4,2 " . + "void=2,1 " . + "fun=1,2 " . + "wchar_size_size=2,2 " . + "alignof_string=1 " . + "max_alignment=1 " . + "char_wchar_signed=true,true " . + "const_string_literals=true " . + "big_endian=false " . + "underscore_name=false " . + "__builtin_va_list=true " . + "__thread_is_keyword=true"; + -- 2.39.2