What the fuck are you talking about?
Apr. 29th, 2008 01:53 amSo I'm trying to help a customer figure out how to use a pointer transparently whether it's in p-memory or x-memory. First I try to declare all the variables locally, but the compiler won't let me declare any p-memory variables locally, because the stack, where locals are stored, is in x-memory. So I declare them globally instead. Then I assign each type of pointer to an integer stored in the same kind of memory, doing the address assignment with the declaration. The compiler eats this without complaint, but fails to actually place the correct address of *either* integer into the appropriate pointer.
At this point, I break for bacon.
After bacon, I try doing the address assignments inside main, and now the addresses are correct. So finally I go for the typecast, going through a void pointer. However, assigning the address of the int to the void pointer results in some crazy address that isn't where the int is located, so there's no point in even *trying* to make the p-memory pointer point toward the x-memory pointer since the intermediate void pointer isn't getting the correct address.
So *finally* I just decide to typecast the entire operation in one line, skipping the void pointer. I fear an error, but the compiler eats it!
Fabulous.
I run it, and when I get to the actual assignment statement, the debugger jumps to an "incorrect long-word alignment exception."
Time for bed.
At this point, I break for bacon.
After bacon, I try doing the address assignments inside main, and now the addresses are correct. So finally I go for the typecast, going through a void pointer. However, assigning the address of the int to the void pointer results in some crazy address that isn't where the int is located, so there's no point in even *trying* to make the p-memory pointer point toward the x-memory pointer since the intermediate void pointer isn't getting the correct address.
So *finally* I just decide to typecast the entire operation in one line, skipping the void pointer. I fear an error, but the compiler eats it!
Fabulous.
I run it, and when I get to the actual assignment statement, the debugger jumps to an "incorrect long-word alignment exception."
Time for bed.
Soil is fucking heavy.
Apr. 9th, 2008 01:46 amAfter bagging and moving 700 lbs (literally) of soil today by hand, and after hand-digging-out 200 square feet of Bermuda grass (the scourge of Austin gardens!) and after laying a 4-block high wall including foundation with limestone bricks weighing an average of 25 lbs or more all over the past week, even my advanced forms of personal denial can't prevent the conclusion that Permaculture involves work.
I don't recall them mentioning that in my design class.
There is only *one* possible reason why I could be doing this.
Work Now = Laziness Later
Further Landscaping Drama ensues:
( Read more... )
I don't recall them mentioning that in my design class.
There is only *one* possible reason why I could be doing this.
Work Now = Laziness Later
Further Landscaping Drama ensues:
( Read more... )
Wish me luck!
Dec. 13th, 2007 01:28 amI'm off to my final review for this year at work at 8:30 AM on Thursday! So far everything looks really good. I finished my 24-slide Powerpoint presentation, and already had the projects themselves done last week.
I hereby coin the word "cogdom" to describe the state of being a corporate drone.
You heard it here first!
I hereby coin the word "cogdom" to describe the state of being a corporate drone.
You heard it here first!