So I’m using EPSON Scan,…
… but one part of the interface kind of confuses me:
… but one part of the interface kind of confuses me:
This is a direct follow-up to my previous post on gcc optimizations. The main code example, integer division by 7, came from a session of the Compilers class I took this semester. The professor was demonstrating the use of gcc to show example assembly for certain operations: arithmetic, branching, etc. We were all expecting something [...]
Here’s a stupid bit of x86 assembly code, using AT&T style: divideBySeven: pushl %ebp movl %esp, %ebp movl 8(%ebp), %edx movl %edx, %eax sarl $31, %edx movl $7, %ebx idivl %ebx popl %ebp ret What does this do? Well, the label should give you a pretty good idea. Converting it into C, we get: int [...]
Submission to the practice problem of the 17th Annual University of Evansville High School Programming Contest:
I mentioned last post that ten stories were added to Folklore.org’s hidden Newton section. Well, since then, another one has been added. I’m kind of annoyed by the fact that the feed for that section still doesn’t work, so I need to remember to go the index myself to check for new stories. So, I [...]
Went through the old posts and spruced everything up so that they at least look no worse than they did in the old theme, I think. Had an oddity with my image styling with Safari 3 and rows of thumbnails, like in this post, where the images load fine the first time, but after the [...]
Posting about this will have limited effectiveness, seeing as I’d put an upper limit of two on my readership total, but by that reasoning I’d never post anything. And I really need to get around to writing regularly. I love Folklore.org. Folklore.org is a web site devoted to collective historical storytelling. It captures and presents [...]
int fuword(const user_addr_t addr); man page [fetch(9)] The fetch functions are designed to copy small amounts of data from user-space. . . . fuword() Fetches a word of data from the user-space address addr. Also acceptable are the related functions fubyte and fulong. I’d probably have to be working at the kernel level to do [...]
Last week, I was writing some C code which used a struct that contained, among other members, an array of strings, and I wanted to initialize an array of these structs for use elsewhere in the code. My initial attempts failed with compiler messages that I’d never seen before, so instead of taking the easy [...]