Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sukaeto

Pages: [1]
1
Completely Unrelated / Jackass running his mouth
« on: 2007-05-10 22:36:44 »
Everyone already knows Pat Buchanan is a douche bag, but please roll on over to Townhall and let him know this.

Immigration laws here in the US are bad enough already without clowns like this running their mouths.

2
Completely Unrelated / World rejoice!
« on: 2006-11-09 04:21:18 »
Dubya's balls are locked in a vice, and Donald Rumsfeld's plan for world domination has come crumbling down:

http://news.yahoo.com/news?tmpl=story&cid=514&u=/ap/20061109/ap_on_el_ge/election_rdp_8
http://news.yahoo.com/s/afp/20061109/pl_afp/usvote_061108235628

Dubya won't be a problem for anyone, anymore.

3
I know I'm supposed to be doing some work right now, but I got side-tracked again (not a hard thing to do, if you're me.)

The other guy (well, other student) invovled in the research paper I'm working on and myself stumbled upon this first little bit accidentally the other day.  I decided I'd start testing a bunch of Ada's features and seeing what kind of code GNAT actually generates for them.

I don't know if any of you guys here use Ada at all (I know we have a few Delphi programmers, the syntax between the two should be fairly similar.), but maybe you'll find this of interest anyway.  All the assembly shown is SPARC.  Their are 2 reasons for this: 1) I know SPARC better than I know x86.  2) SPARC looks prettier than x86.  I would imagine the code generated by the compiler to be quite similar on both architectures, and anyone who knows the differences between a RISC and CISC architecture should be able to figure out what the x86 code would look like.

First off:  the natural, a subtype of integer.  My intial thought on this was that it was stored in only 31 bits (well, that it ignored the last bit) so that it would roll to 0 at MAX_INT and never have to worry about any kind of one's compliment stuff to check for negative numbers.  In reality, though, a natural is stored as an integer, and a comparison against 0 is done any time an operation is done on a natural.  Hence the following Ada code:

Code: [Select]

procedure test_natural is
test : natural;
test1 : integer;
begin
test1 := 5;
test := 25 + test1;
end test_natural;


will generate the following assembly code:

Code: [Select]

_ada_test_natural:
!#PROLOGUE# 0
save %sp,-120,%sp
!#PROLOGUE# 1
mov 5,%o0
st %o0,[%fp-24]
ld [%fp-24],%o0
add %o0,25,%l1
cmp %l1,0
bl .LL4
nop
b .LL2
nop
.LL4:
sethi %hi(.LLC0),%o1
or %o1,%lo(.LLC0),%o0
mov 6,%o1
call __gnat_rcheck_10,0
nop
mov %l1,%l0
b .LL3
nop
.LL2:
mov %l1,%l0


The moral of this story?  Only use a natural when you absolutely MUST have non-negative integers, and won't be able to tell until runtime whether or not said integers are negative.  You'll also notice that I added another variable to 25 for 'test'.  This is because the compiler itself does the computations when only literals are involved.  I like this idea, and I also figure most other compilers for most other languages will do the same thing.  This brings me to my next thing, though.

Constants.  Any operation involving a combination of constants and literals will be done by the compiler.  Hence the following Ada code:

Code: [Select]

procedure test_constant is
test : constant natural := 5;
test1 : natural;
begin
test1 := test + 10;
end test_constant;


will generate the following in assembly:

Code: [Select]

_ada_test_constant:
!#PROLOGUE# 0
save %sp,-120,%sp
!#PROLOGUE# 1
mov 5,%o0
st %o0,[%fp-20]
mov 15,%o0
st %o0,[%fp-24]
b .LL1
nop
.LL1:
ret
restore


As you can see, no add instructions.  It does, interestingly enough, store the constant on the stack.  I'm guessing this has something to do with scope and use of the constant.

I know alot of you are probably thinking "you stupid ass, this is all basic compiler design stuff, I already knew this.  ABC's compiler for language XYZ does this too."  You're right.  These were pretty simple examples.  However, I do intend to check out some of the more unique features of Ada and see what kind of code actually comes up.  If anyone actually gives 2 shits, I'll post what I find  here.

Don't really expect too much until Spring/early summer (when we'll hopefully have an algorithm with interesting enough results to write a paper on.  At that point, I'll be doing some code optimization to make it as quick as possible.)

4
Not sure weather this should be here or Unrelated . . .

Anyway, we're getting ready to roll out new PCs at the Uni (the order has been placed, they should be in in about 2 weeks.)

Someone had the bass-ackward idea of creating a ghost image for each of the about 2000 Faculty & Staff members' PCs (Don't ask.  Wasn't my idea.  I find it a rather ridiculous waste of time, storage, and bandwidth . . . especially coming from an IT department.) and I've been elected as one of the guys who's gonna make the images.

I'm trying to make this as effortless as possible (to hopefully make it a little less boring and time consuming), so I'm writing a batch file that'll automatically run ghost with the necessary parameters to just make the image without any user intervention (so I can just stick the boot CD in and go on to the next PC.)  The only problem is - figuring out how to get a unique name for each .GHO file.

We're having a bunch of outsource guys come in and take all the old PC's offline, so one of the things we're gonna have them do is rename drive C on each machine as they take it down to whatever the username of the person who uses that particular PC happens to be.

There are two of us working on this automated script, and so far, the other guy's written a little applet that'll look at a text file outputed by the DOS 'vol' command, and grab the name of the volume.  What we now need to do is set an environment variable to that value. (so that we can pass that variable in a batch file to ghost as the name to use for the image.)

I've managed to get the system("command") function in stdlib to run pretty much ANY command except the 'set' command.  It'll run, but won't set/change any environment variables.  I've also tried putenv("variable=value") with the same result (app runs, no change in env var.)

I guess I'm just wondering if any of you guys have any experience with these functions, or maybe another (probably better) idea for getting the username into a env variable to use in a batch file.  The boot discs I'll be using are modified Bart Network Boot CDs, using Win98.  (now, I've been trying to set the variable on a Win2k box . . . I'm thinking maybe, JUST MAYBE, it'll work in 98 . . . but hey, this IS Microsoft we're talking about here.)[/i]

5
Scripting and Reverse Engineering / Debugger Issue
« on: 2003-11-16 01:54:09 »
I originally posted this in Unrelated, but I guess it should probably be here . . .

I'm using GNU's gdb 4.18, it came with Bloodshed Dev C++ (version 4). It always worked just fine, but last night, it just randomly started giving me this error when I'd try to run the program I was debugging:

Error creating process [drive:\path\appname.exe], (error 193)

Now it does this for any program I try to run, even if I'd used the debugger on it successfully in the past.

I was just wondering if any of you have run into this issue before, and what you did to fix it (This is on a Win2K box, btw. I forgot to mention that above. Also, if it helps, I'm running it inside GNU Emacs. I can't find the version number of that, though). A search on google, and one on Yahoo turned up no useful information.

6
Scripting and Reverse Engineering / Certifications
« on: 2002-01-18 04:52:00 »
Well, Course Technology (the publishers of the "A Guide to MCSE" and other such series) is about to release their book for MCSE exam # 70-720 (Installing, Configuring and Administering Windows XP Professional.) so I'm planning on going for my MSCE certification this year.  (Even though it is from sh*tty MS, it's what companies are looking for right now . . . I just hope the Windows XP exam deals with the NT elements of XP and not its Stupid F'ing idiot oriented shell.)

I've also thought about looking into some of the Cisco certifications, but I've heard Cisco's going under :-(.

I'm sure those Cisco exams cover information that's good/interesting to know if you're a PC Technician/Network Analyst.

So, anyway, is any one else here interested in taking any kind of Tech exams?  Are you doing it just so you can say you're certified, or are do you actually want know and understand the stuff you'll be testing on? (like me . . . I'm always up for learning more things that'll help me out with my career.)

. . . Just thought I'd make a half-assed attempt to start a good Technical discussion . . .

7
Archive / FF7 For Sblive! version 1.41 released
« on: 2001-12-05 01:51:00 »
You can grab the patch for version 1.3 here: http://www.sci.fi/~jarihu/FF7sblivev1.3_to_1.41.exe

If you don't have version 1.3 already, you can grab that at http://www.sci.fi/~jarihu/FF7sblivev1.3.exe

8
Scripting and Reverse Engineering / Motherboards
« on: 2001-10-29 01:20:00 »
Well, I've got a 512 Meg stick of DDR RAM here that I want to use, so it's time to buy a new motherboard.

I'm stuck between two particular boards.  Both have pretty much the same features, use the same Chipset and so on.

The first board is the A-Bit KG-7.  I already have an A-Bit board that I like, and I've only heard good things about the KG-7.

The second board is the EPoX EP-8KHA+.  I hadn't heard of EPoX untill lately, but lots of people are saying good things about their boards . . . and they are a bit less expensive than A-Bit's (Though I've learned saving money isn't always the best in the long run with Motherboards.)

So I figured I'd ask the opinions of any one on this board who has an A-Bit or EPoX board (or has worked with either.)

Thanks in advance for any input :-)

9
Scripting and Reverse Engineering / ATI All-in-wonder 128
« on: 2001-04-07 20:47:00 »
Has anyone here ever owned one?  If so, what were your experiences with it?  Good? Bad?

I'm building a computer for my uncle, and that's the Video card I'm looking at, but I'm still open to suggestions if anyone has a better idea.  (Looking for a good all around chipset that isn't too expensive, but isn't a cheap piece of junk, either.)

If it helps, here are the prospective CPU and Motherboard:

A-BIT KT7 133 (Definitely want a good Motherboard)
AMD Duron 800 (Good proccessor, not too expensive.)

Thanx guys.


Pages: [1]