--- layout: fc_discuss_archives title: Message 110 from Frama-C-discuss on May 2010 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Frama-c with Freescale (Motorola) HCS12 micro controller



> Frama-C [...] is not specific to a certain
> microcontroller.

More precisely, Frama-C is specific to several architecture/compilation
platforms (a partial list can be obtained with "frama-c -machdep help").
Do not delude yourself into thinking that it is possible
to verify C code without hypotheses on the compilation platform.
Even if we assumed
only the minimal ranges for char, short, and int guaranteed
by the standard, the presence of sizeof(...) in the analyzed code
would bias any analysis sophisticated enough to make a difference
between 2 and 4.

As an extreme example,
switch(e)
{
  case sizeof(int): f();
  case sizeof(long): g();
  default: h();
}

is a *syntactically* correct C program iff sizeof(int) != sizeof(long).

Pascal