Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





  READ ME FIRST
Posted by: david ward - 10-12-2007, 03:13 PM - Forum: MISRA AC resources - No Replies

This area of the Forum provides downloadable resources associated with MISRA Publications.

Please note that by downloading a resource you accept the license conditions associated with it.

Further details are given with each file.

Print this item

  Welcome
Posted by: Steve Montgomery - 06-12-2007, 11:24 AM - Forum: MISRA AC AGC discussions - No Replies

This new forum has been set up for asking questions about and discussing MISRA's \"Guidelines for the application of MISRA-C:2004 in the context of automatic code generation\" (otherwise known as MISRA AC AGC).

The Working Group responsible for the MISRA AC AGC document will consider questions posted here and if appropriate give an official response (which will be posted by the \"MISRA Reply\" user). Any other comments and responses from any posters shall not be considered an official MISRA position.

We expect to respond to questions on an approximately monthly basis so if you don't hear from us, please be patient.

Steve Montgomery
MISRA Autocode Guidelines Project Leader

Print this item

  Welcome
Posted by: Steve Montgomery - 06-12-2007, 11:20 AM - Forum: MISRA AC TL discussions - No Replies

This new forum has been set up for asking questions about and discussing MISRA's \"Modelling style guidelines for the application of TargetLink in the context of automatic code generation\" (otherwise known as MISRA AC TL).

The Working Group responsible for the MISRA AC TL document will consider questions posted here and if appropriate give an official response (which will be posted by the \"MISRA Reply\" user). Any other comments and responses from any posters shall not be considered an official MISRA position.

We expect to respond to questions on an approximately monthly basis so if you don't hear from us, please be patient.

Steve Montgomery
MISRA Autocode Guidelines Project Leader

Print this item

  Example spreadsheet
Posted by: david ward - 05-12-2007, 01:29 PM - Forum: MISRA SRfP resources - No Replies

This is the example spreadsheet that corresponds to the MISRA SRfP example in Figure 9 of the document.



Attached Files
.xls   MISRA_SRfP_example.xls (Size: 16 KB / Downloads: 18)
Print this item

  Example spreadsheet
Posted by: david ward - 05-12-2007, 01:22 PM - Forum: MISRA SRfP Discussions - No Replies

This example has been relocated to the \"Resources\" section. This section is visible to registered users after login.

Print this item

  READ ME FIRST!
Posted by: david ward - 05-12-2007, 01:21 PM - Forum: MISRA SRfP resources - No Replies

This area of the Forum provides downloadable resources associated with MISRA Publications.

Please note that by downloading a resource you accept the license conditions associated with it.

Further details are given with each file.

Print this item

  Welcome
Posted by: david ward - 05-12-2007, 09:47 AM - Forum: MISRA SA discussions - No Replies

This new forum has been set up for asking questions about and discussing MISRA's \"Guidelines for safety analysis of vehicle based programmable systems\" (otherwise known as MISRA SA and MISRA Safety Analysis).

The Working Group responsible for the MISRA SA document will consider questions posted here and if appropriate give an official response (which will be posted by the \"MISRA Reply\" user). Any other comments and responses from any posters shall not be considered an official MISRA position.

We expect to respond to questions on an approximately monthly basis so if you don't hear from us, please bear with us as we have day jobs to do too!

Print this item

  Validation of MISRA?
Posted by: acm - 04-12-2007, 04:01 PM - Forum: General Questions - Replies (12)

It is clear that implementing the MISRA code guidelines costs a lot in training, and that it bloats source code to some extent. Do the guidelines provide more benefit than their cost? I am somewhat sceptical about these benefits.

The MISRA guidelines have been in use for around a decade. There will thus surely have been some studies undertaken that demonstrate that the MISRA guidelines work, for some value of \"work\". Or, more accurately put, that determine in which circumstances they are useful and in which they are not.

I am disappointed not to be able to find any references to these studies on the MISRA web site. I wasn't able to find any with an internet search (though my googling skills are not that good).

Would somebody please point out these studies to me?

Thanks in advance!

--
Alan Mackenzie (Nuremberg, Germany).

Print this item

  Is Exemplar suite already uploaded?
Posted by: rahul_mishra - 29-11-2007, 03:00 PM - Forum: MISRA-C:2004 Exemplar Suite - Replies (6)

Hi folks,

I had read in an article by Mr. Chris Hills http://(http://www.phaedsys.org/papersese0604.html)a few days back mentioning that the exemplar suite for the MISRA-C:2004 would be uploaded in a few days.
When can I expect the exemplar suite for MISRA-C:2004 to be uploaded? If its already uploaded, could I know the url to download it from.

Regards,
Rahul Mishra

Print this item

  11.4 A cast should not be performed ...
Posted by: Frank Haug - 06-11-2007, 10:13 AM - Forum: 6.11 Pointer Type Conversions - Replies (1)

... between a pointer to object type and a different pointer to object type (advisory).

Additional comment: \" Conversions of this type may be invalid if the new pointer type requires a stricter alignment.\"

---

I think there can be further risks. I suppose - e.g. - casting a signed pointer onto an unsigned pointer (of the same bitwidth and alignment) itself is not risky. Dangerous can be to WORK with the casted pointer regarding its content, it is pointing onto. In this case the cast itself would not be dangerous, but the possibilities afterwards are.

example:

unsigned int foo (signed int* ps)
{
unsigned int* pu;

pu = (unsigned int*) ps; // assumed to be no problem itself
*pu = ... ; // assumed to be no problem itself
// but can be a problem later, when the content of the incoming pointer is used afterwards
}

Can anybody confirm ? I think it can be of interest to know the problems in more precision. Does anybody know other implications (not applying such casts) ?

Regards,
Frank

Print this item

Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,213
» Latest member: RichardEdward
» Forum threads: 1,017
» Forum posts: 2,796

Full Statistics

Online Users
There are currently 161 online users.
» 0 Member(s) | 158 Guest(s)
Bing, Google, UptimeRobot

Latest Threads
Rule 7.0.5, example non-c...
Forum: 4.7 Standard conversions
Last Post: cgpzs
17-04-2025, 12:10 PM
» Replies: 0
» Views: 187
A3-3-2 Contradictory exam...
Forum: AUTOSAR C++:2014 rules
Last Post: cgpzs
31-03-2025, 09:30 AM
» Replies: 2
» Views: 322
16.6.1 clarification
Forum: 4.16 Overloading
Last Post: cgpzs
31-03-2025, 09:29 AM
» Replies: 2
» Views: 304
Rule 9.3.1 - iteration st...
Forum: 4.9 Statements
Last Post: misra cpp
28-03-2025, 01:17 PM
» Replies: 1
» Views: 199
Rule 8.2.8 - why aren't a...
Forum: 4.8 Expressions
Last Post: misra cpp
28-03-2025, 01:05 PM
» Replies: 1
» Views: 219
Typo in Appendix C of MIS...
Forum: 8.10 The essential type model
Last Post: Yordan Naydenov
17-03-2025, 02:58 PM
» Replies: 0
» Views: 184
Adopted modal expressions...
Forum: General Questions
Last Post: Yordan Naydenov
17-03-2025, 09:01 AM
» Replies: 0
» Views: 290
Roadmap to c23 support
Forum: General Questions
Last Post: ACHart
28-02-2025, 03:23 PM
» Replies: 0
» Views: 222
Rule 6.2.1 weak linkage
Forum: 4.6 Basic concepts
Last Post: misra cpp
28-02-2025, 01:04 PM
» Replies: 1
» Views: 281
A8-4-5: Should have an ex...
Forum: AUTOSAR C++:2014 rules
Last Post: misra cpp
21-02-2025, 12:58 PM
» Replies: 3
» Views: 726