- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Toyota UA stuff.
Collapse
X
-
-
From the article:
# The standard gcc compiler version 4″ generated a redacted number of warnings (probably larger than 100) about the code, in 11 different warning categories. (p. 25)
# “Coverity version 4.2″ generated a redacted number of warnings (probably larger than 154) about the code, in 10 different warning categories. (p. 27)
# “Codesonar version 3.6p1″ generated a redacted number of warnings (probably larger than 136) about the code, in 10 different warning categories.
# “Uno version 2.12″ generated a redacted number of warnings (probably larger than 72) about the code, in 9 different warning categories.
# The code contained at least 347 deviations from a subset of 14 of the MISRA-C rules.
# The code contained at least 243 violations of a subset of 9 of the 10 “Power of 10–Rules for Developing Safety Critical Code,” which was published in IEEE Computer in 2006 by NESC team member Gerard Holzmann.
The slight snag is that to some extent lazy or incompetent programmers can "mask" potential problems just to achieve a clean compile.Work in the public sector? Read the IR35 FAQ here -
Originally posted by zeitghostIndeed.
As I tell my illustrious esteemed customers, you fix errors & then you fix the warnings.Comment
-
Nah.
Coz it's got 12 bits not 8.
But apart from that, it's perfect.
The Power of Ten -- Rules for Writing Safety Critical Code -- Rule Ten
It gets better:
What NHTSA/NASA Didn’t Consider re: Toyota’s Firmware « Barr Code
Recursion in a real time embedded system?
Are they mad?Last edited by zeitghost; 26 April 2017, 14:07.Comment
-
Originally posted by zeitghostIt gets better:
What NHTSA/NASA Didn’t Consider re: Toyota’s Firmware « Barr Code
Recursion in a real time embedded system?
Are they mad?Comment
-
Originally posted by Doggy Styles View PostRemember the good old days of cables? If the cable broke you stopped accelerating.
In those days, the ignition switch actually switched stuff off, rather than using a microcontroller & a CAN bus to tell something else to switch off.
It's all madness, I tell you, madness.
So, to sum up, there's 64Mb of this tulipe to control the throttle, using two processors in the pedal, complete with a shedload of compiler warnings that no one has bothered to fix and "to save space" it uses recursion.
Magic.
I'll stick to an Austin 7.
It's just struck me why stack corruption is A Very Bad Thing.
Auto variables.
Wot live on the stack.
I'd forgotten that.
(Like much else, sadly).
Which is why the PIC12/PIC16 is a pain for C compiler writers, since you don't have access to the stack.
At all.
Much like the MC6805 in that respect.Last edited by zeitghost; 26 April 2017, 14:11.Comment
-
Originally posted by OwlHoot View PostFor a safety critical app it should be an unbreakable rule that it compiles at the maximum warning level with zero warnings.
The slight snag is that to some extent lazy or incompetent programmers can "mask" potential problems just to achieve a clean compile.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by Doggy Styles View PostRemember the good old days of cables? If the cable broke you stopped accelerating.
Unintended acceleration on a Morris Minor!
I switched off and coasted to a halt.
No steering lock in those days, fortunately.
I managed to jam the throttle half way open and got home that way.
Modern technology.
Pah!Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
Originally posted by Sysman View PostI had the carburettor return spring break on me once. The engine soared to full revs.
Unintended acceleration on a Morris Minor!
I switched off and coasted to a halt.
No steering lock in those days, fortunately.
I managed to jam the throttle half way open and got home that way.
Modern technology.
Pah!
On another occasion he had a wheel fall off it while driving down the road. A bolt sheared or something. He used string to hold that back on too.
His entire emergency toolkit appeared to consist of a ball of string.
Modern technology, pah!Comment
-
Originally posted by zeitghostString didn't work too well if you forgot to grease your trunnions regularly.
I think he also used string when his wipers stopped working, but that might have been someone else.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Experts you can trust to deliver UK and global solutions tailored to your needs! Today 15:10
- Business & Personal Protection for Contractors Today 13:58
- ‘Four interest rate cuts in 2025’ not echoed by contractor advisers Today 08:24
- ‘Why Should We Hire You?’ How to answer as an IT contractor Yesterday 09:30
- Even IT contractors connect with 'New Year, New Job.' But… Jan 6 09:28
- Which IT contractor skills will be top five in 2025? Jan 2 09:08
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Dec 24 09:51
- Reeves sets Spring Statement 2025 for March 26th Dec 23 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
Comment