Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] Unknows Pragma


  • Subject: [Frama-c-discuss] Unknows Pragma
  • From: patrik.nylund at tke.fi (Patrik Nylund)
  • Date: Wed, 02 Jun 2010 08:47:51 +0300
  • In-reply-to: <20100531124550.4fa8f086@is010235>
  • References: <4BFF8109.10903@tke.fi> <AANLkTinL1AJ0k0C_7D6wqlIEe3uBWvLTy5IxzKzc7lIU@mail.gmail.com> <4C038E06.902@tke.fi> <20100531124550.4fa8f086@is010235>

Hi

I got the command to work. But obviously I have several other pragmas 
that should be ignored. Seems like I will need the perlscript anyway.
Does anybody know how to write the perlscript that Pascal was talking about?

And how to use?

best regards,

On 31.5.2010 13:45, Virgile Prevosto wrote:
> Hello,
>
> Le lun. 31 mai 2010 13:23:02 CEST,
> Patrik Nylund<patrik.nylund at tke.fi>  a ?crit :
>
>    
>> I downloaded the last frama-c source and added the patch, make and
>> installed.
>>
>> But using the option example is giving me some errors I can not solve
>> (quite new to linux bash and pipes :) )
>>
>> MyCommand:
>> frama-c -cpp-command "gcc -C -E -I.<  %1 | grep -v pragma\ LINK_INFO>
>> %2" -val HC12DIN.c
>>
>>      
> The -cpp-command proposed by Pascal contained an additional dash, as in:
>
> gcc -C -E -I. -<  %1 | ...
>
> '-' tells gcc to read from standard input and write the result on
> standard output (so that we can feed grep with it).
>
> Hope this helps,
>