This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hmm, you probably should be scanning Miller's handy... http://www.dwheeler.com/essays/high-assurance-floss.html
High Assurance (for Security or Safety) and Free-Libre / Open Source Software (FLOSS)... with Lots on Formal Methods
Thanks for that link John. Wheeler has collected and weighted a snapshot of open source projects anyhow related to security issues. Unfortunately I can't find much safety. All the levels are security levels no safety level. And - to be honest - no one could persuade me yet that formal methods overcome semi-formals like UML. In practice they do not do better. But I might not be at the state of the art.
But hmm, you said debug not test... So I think there is more to that issue than meets the eye...
hmm, nice, you catched this difference. Yes, that was the problem: Debugging is about reducing the number of errors. Apart from statistics no public demonstration has to come up. Testing a module is about proving the absence of failures as far as possible in that step. With strong demonstration to independent people, representing the public. And I agree this has to be and will be done on the target system. Debugging is not testing.
Sorry, I didn't mean to impress nor to loose you here.Wow! That is really Amazing! You are _so_ deep in the Dilbert Zone! Do you _ever_ see sunlight there?
http://www.dilbert.com/comics/dilbert/archive/dilbert-20060724.html
http://www.dwheeler.com/program-library/Program-Library-HOWTO/x36.html http://people.redhat.com/drepper/dsohowto.pdf
Thanks, the latter one made me learn something: ELF and PIE, GOT and PLT (About every time they talk about "cost" in terms of speed and memory I'm reading "solution" in terms of independence and invariance.)
He seems to know what he's talking about.In fact Drepper's whole page is a gold mine of detailed info on ELF. http://people.redhat.com/~drepper/
In fact I'll make a wild guess....
If you really understood all the niches and corners of ELF, which is quite a large and hairy domain, what you want is already in there somewhere.
That not a wild guess, for what I see it's true. What I also see is, that could be a lot of tricky work as I mentioned above: I'm not so much interested in cost (memory and speed) as all others are. Would be nice if someone already has done that work with more knowledge about ELF as I'm equipped with.
Yes, here is what I understood so far to find the solution I'm looking for:
What I wanted to tell you is, that you're completely right with the example of the Unix loader separating tasks by means of address space.
I have to look at a module as a task that takes messages and respond with messages. As in UML sequence charts.
What is the easiest way to implement a messaging system e.g. by macros for programmers that like to use function calls?
Make it simple to use, complex == more lines of code == programmer mistakes.
The one we are using involves declaring and packing and unpacking structs all over the place. Yuck! Tedious and error prone.
I itch to rewrite using a simple convention that looks like an ordinary function declaration, definition and reference.
And then add a bit of Ruby code generation magic to generate a header pulled in by the client and a header to be pulled in by the server. Oh, and glue it together with a small, possibly entirely non-portable bit of C that understands varargs to serialize the arguments across the messaging interface.
I bet I can get a huge reduction in code size, much simpler, much more reliable and better code.
What do I have overlooked, John? What could be made simpler? I'm mostly worrying about step 1. Also there's a risk to be unsuccessful in step 3 and 4. What are other risks that I haven't identified?
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |