Slashdot Mirror


AMD Releases Hammer documentation

Jonathan Graham writes: "Last Thursday AMD posted the five volume architectural manual to their new x86-64 processor on their website. The tomes are as follows: Application Programming, System Programming,General Purpose and System Instructions,128-bit Media Instructions and 64-bit Media and x87 Floating Point Instructions. Gentlemen...start your compilers! (or start writing them!)"

37 comments

  1. Already posted.. by Anonymous Coward · · Score: 0

    Last week..

  2. The thrilling conclusion... by Anonymous Coward · · Score: 0

    I've read them. The butler did it.

  3. What a waste by Demona · · Score: 5, Interesting
    gcc for Linux has those -i486, 586 and 686 flags, but no -amd flag, so it would seem that your spiffy Duron or Athlon doesn't take advantage of any of the chip's special features, essentially running it like a dumb fast legacy chip. That ain't my idea of efficiency. How many years did it take for the Pentium optimizations to make their way from an IBM lab into egcs and finally the mainstream gcc? By that time, AMD's were selling like hotcakes, especially among the build-your-own crowd. And this was when the dot com bubble was still growing, so it's a real shame AMD didn't stick a few developers on the necessary gcc work for that platform -- now that they're currently releasing the XP's and working on Hammer while phasing out Durons, the timing would have been perfect to release what they had for the older chips and work with the community on integrating it.

    But as the roommate said, if you bothered trying to optimize your software for PC hardware it'll take you at least a year or two, by which time the hardware will be 'hopelessly outdated'. In the meantime, we get laptops that are nothing more than gigahertz crotch-warmers and desktops that are 2 gigahertz room-warmers, effectively dropping jet engines into lawnmowers and seeing a lot of energy diappear into a black hole called FALSE PROGRESS.

    --
    Fuck Slashdot
    1. Re:What a waste by droidix · · Score: 2, Informative

      gcc does have -march=athlon though

    2. Re:What a waste by leviramsey · · Score: 4, Informative
      gcc for Linux has those -i486, 586 and 686 flags, but no -amd flag

      You're not using gcc-3.2, are you?

      gcc-3.2 has both -mcpu=athlon and -march=athlon flags.

      Yeah, gcc-2.95 won't optimize for athlon, but the only excuse for using an outdated compiler like that is if you're a debian user, in which case you don't give a shit about keeping up with the joneses, anyway.

    3. Re:What a waste by Demona · · Score: 3, Interesting

      Obviously, I wasn't aware of that, or I wouldn't have said what I said. I stand corrected. However, I use Debian, and a whole lot of other Linuxes, and BSD, and Windows, and other OS's where appropriate, so your attempt at being witty comes across as dismissive, juvenile and rude. Big fat surprise, eh? I'll just invoke Godwin's Law now and note that if Hitler used Linux, the Slashbots would have helped write software to send Jews to the gas chambers...

      --
      Fuck Slashdot
    4. Re:What a waste by leviramsey · · Score: 3, Interesting

      My apologies for the gratuitous distro flame. Many/most of the debian users I talk to (especially those who are still running potato), when I start talking about how great the latest GNOME/KDE/mozilla/XFree/kernel versions are essentially take the attitude of "so what, kernel 2.2.17 is working fine for me." From this, I deduce that debian users don't necessarily care about having the latest versions of software. I'm not knocking this mindset, but the vaunted stability of Debian has its counterpoints, and this is one of them. OTOH, I run Mandrake's development branch (Cooker being somewhere between Sid and Sarge), and get the latest and greatest (or only a few steps from the edge) versions and damn fine stability to boot... diff'rent strokes for diff'rent folks.

    5. Re:What a waste by Demona · · Score: 3, Interesting
      My thoughts precisely, and thanks for your clarification and gracious apology. My first thought on hearing mention of gcc3.2 was, "How many distros use it as default?" I know Gentoo's working on it for their next version, but they're already notorious for being bleeding-edge. As you see, for both my personal use and in various work settings I prefer a mix of current, recent and older software; but of course there are tons of institutions out there who move far slower, and rely far more heavily on things staying the same. (Witness the infinite COBOL, mainframe and assorted other discussions that always come up when someone assumes that history started with the PC...) As you say, the right tool for the right job.

      More to the point, now that I know about -march for Athlons, I'll search it out and give it a try on a test machine. Thanks for the information.

      --
      Fuck Slashdot
    6. Re:What a waste by Chexsum · · Score: 0

      chexsum@chexsum:~$ apt-cache search gcc | grep gcc-3
      gcc-3.0 - The GNU C compiler.
      gcc-3.0-base - The GNU Compiler Collection (base package).
      gcc-3.0-doc - Documentation for the GNU compilers (gcc, gobjc, g++).
      gcc-3.1 - The GNU C compiler.
      gcc-3.1-base - The GNU Compiler Collection (base package).
      gcc-3.1-doc - Documentation for the GNU compilers (gcc, gobjc, g++).
      gcc-3.2 - The GNU C compiler.
      gcc-3.2-base - The GNU Compiler Collection (base package).
      gcc-3.2-doc - Documentation for the GNU compilers (gcc, gobjc, g++). ...think again.

      --
      Pixels keep you awake!
    7. Re:What a waste by Chexsum · · Score: 1, Interesting

      Debian has all that and moron^H^He.

      I run the testing distribution of Debian (sarge) which is alot more stable than cooker although I do like the Mandrake distribution and would run it if I had a machine capable of running it.

      I run XFree86-4.2, Mozilla *a few different versions*, GNOME2, Galeon2 and plenty of other packages which Mandrake users read about. I run all this on a AMD k6-II 300/256M POS and occasionally on a P100/32M.

      NB. Dont talk nonsense.

      --
      Pixels keep you awake!
    8. Re:What a waste by Chexsum · · Score: 0

      Theres nothing wrong with a mainframe!

      Now PCs, dont get me started on these piles of junk. ;)

      --
      Pixels keep you awake!
    9. Re:What a waste by Anonymous Coward · · Score: 0

      OK, we have a historical achievment here on slashdot: the first apology for flaming on the net.

    10. Re:What a waste by Lars+T. · · Score: 2

      Uh-oh, a new wave for the trolls: first apology.

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

  4. Oh, of course... by Demona · · Score: 2

    ...the Slashbot consensus now is, not only do cool people use only Linux, but cool people only use PC-compatibles. Sort of like the riceboys who get a big kick out of their souped-up piece of crap that a real engineered vehicle leaves in the dust. (Note: By piece of crap, I am referring to PC hardware, not Linux. If you don't see this as a contradiction, you may have two brain cells to rub together.)

    --
    Fuck Slashdot
    1. Re:Oh, of course... by Anonymous Coward · · Score: 0

      Well for a "bunch of riceboys", they can sure produce an inexpensive reliably fast car. It makes you wonder if American automotive engineers just pack fudge all day.

    2. Re:Oh, of course... by AndyAMPohl · · Score: 1

      Fast whatever. I think Honda Civics are the most common I've seen made to look ridiculous. Those are family cars. Any time you see one of those with a monster wing on it, just start laughing and think about what happens when a front-wheel-drive car attempts to go fast while at the same time, downward forces from the wing are applied to the rear-end of the vehicle. Essentially, the driver will lose control of the vehicle at high speeds. This isn't usually a problem since those hondas have something like 130hp 4cyl engines that red-line at 3500rpm (totally guessing... probably a slight exaggerration). Anyways, most of the "riced-out" cars you see on the road don't have engine-mods anyway. The first thing to go is usually the muffler. Then maybe a big stupid wing. Then maybe change up the tail/head-lights to hyper-brights. Add some idiotic stickers. Change the "badge" on the car to pretend you have a more expensive model. I hate hate hate hate those cars. In my neighborhood, they're all over the place. They're loud and ugly.

      I got a 98 corolla. One of the most boring cars on earth. It's slow and fairly quiet. I don't care. Last time I checked, the speed limit around here is 70mph on the freeway. It doesn't have a problem with that.

      Mod me offtopic/flamebait/troll. But I just had to vent. It felt good.

      Andy

    3. Re:Oh, of course... by HughsOnFirst · · Score: 2

      >4cyl engines that red-line at 3500rpm (totally
      >guessing...
      I had an old 1986 Civic that I gave to one of my coders ( cheaper than junking it ) that was quite happy to rev to 6500 rpm for minutes at a time.
      7000 between shifts. I could not blow it up if I tried, and I _did_ try. I heard he drove it from NYC to Maine every weekend for a couple years after I gave it to him.
      Some new Hondas go up to 9000 rpm.

      I however am quite happy with my Volvo turbo wagon. The only thing faster than the Honda engine was the rust on my Honda.

    4. Re:Oh, of course... by PD · · Score: 1

      Actually the Civic EX has 125 HP and redlines at 7100 rpm. I agree about the wings. My Civic is plain old stock.

    5. Re:Oh, of course... by Anonymous Coward · · Score: 0

      Never mind that a real car will leave the civic in the dust....

      And I am talking about something like a Camaro Z28, Mitsubishi 3000GT VR4, hell even a stock Miata would take most of them.

      And no, theyre not that big of gas guzzlers either. My 95 Z28 easilly got 28mpg (~8.4L/100km) on interstate driving. (almost idling at 1800 rpm in sixth doing 80mph)

    6. Re:Oh, of course... by cant_get_a_good_nick · · Score: 2
      I think you need to differentiate between "souped up" and "I want it to look like this is souped up". Most souped up cars are fairly subtle, don't want to catch any unwanted attention from the cops.

      The "rice boyz", the dorks who trick their cars out, do stupid stuff:
      • Add a huge exhaust pipe when their engine isn't modded. This decreases performance from the increased back pressure. But it he heh, looks cool. Heh... dooood.
      • Huge spoked rims on drum brakes. No real racer would have drum brakes, too fade prone. Worse is when they paint the drums body color, which infinitessibly hurts performance (more unsprung weight, more rotational inertia) and makes heat dissipation not as efficient, so slightly adds to fading.
      • The wings, all they do is add drag. Why have on a front wheeel drive car? Pressure is friction, but in a front driver, they don't help much. You'll bite at the back. I guess in some respects it is good, cause it will slow the morons down and give them understeer, so they won't be idiots and fishtail into oncoming traffic.
      • Super low sidewall tires. They help cornering, but do shit to ride quality. Hope they jar their fillings out.
      • High colored interiors. Saw one car with a bright yellow interior. Imagine the reflections off that? There's a reason everything in a real car is boring flat black, nothing to distract you.
  5. GCC already supports x86-64 by vojtech · · Score: 3, Informative

    Why talk about athlon optimizations? GCC already supports the x86-64 arch, and Linux runs on it, see http://www.x86-64.org

    1. Re:GCC already supports x86-64 by Demona · · Score: 1
      "Why talk about older technology that many people currently own and are still buying? I have support for what I want." Hint: Some of us like the idea of being able to take advantage of a broad range of hardware.

      Not everything that's newer is better just because it's new. And not everything that's older is better just because it's old. To me, one of free software's greatest strengths is its ability to take advantage of almost any niche, from the bleeding edge to the dusty distant past. Not that I personally know anyone who's recently compiled in support for those XT hard drive controllers, but I'll support to the death the developers' right to #include it.

      --
      Fuck Slashdot
    2. Re:GCC already supports x86-64 by Anonymous Coward · · Score: 0

      Hey you anti-semetic piece of shit. You completely mis-read what the fuck he was saying. And then like the typical /. garbage that you are, you quote him like he said it. He DIDNT FUCKING SAY THAT GCC SHOULD ONLY SUPPORT X86-64. He said that gcc ALREADY supports X86-64. He also DID NOT say that only new hardware should be supported. My god are you a dumb fuck. I bet you use Linux.

      What are you, some kind of knee-jerk zealotist fuck? No one fucking said that GCC should only suppose X86-64. WTF??

      And you will support, to the death, the developer's right to "#include" (wow such wit) it. Who the fuck said that it should be removed? And you will actually die to protect that right? So if I had a gun pointed at your head and said either you no longer support XT hard-drive controller drivers or I'll kill you, you'd rather have me kill you? WTF??? My god are you a fucking loony anti-semite.

      Grow the fuck up.

  6. Virtualization? by phr2 · · Score: 3, Interesting
    I looked at the table of contents for the system programming manual and don't see any features for supporting self-virtualization beyond what's in the Pentium etc. I wonder what kinds of hoops it will take to make something like Plex86 virtualize the 86-64. I wish they'd add some hardware virtualization features since with these big processors, running multiple 'partitions' becomes more and more important.

    I also notice that cycle counts aren't specified for the fancier arithmetic instructions like MUL and the multimedia instructions. Those make a big difference in the performance of graphics and signal processing applications including audio compression and so forth. So I guess we'll have to wait to see benchmarks.

    1. Re:Virtualization? by some+guy+I+know · · Score: 1

      I wish they'd add some hardware virtualization features

      I am curious what features you'd like to see that aren't there already.
      The only thing that I can see lacking is the ability to virtualize in level 3 without level 0 support.
      It would be nice if a (non-software-only) VM could operate entirely in "user" space.

      --
      Those who sacrifice security to condemn liberty deserve to repeat history or something. - Benjamin Santayana
  7. Old news. by Phosphor3k · · Score: 1

    These have been out for at least 6 months. However these are dated September, so they must be updated. Every time I try to get them to send me the last three of the set, they just send me another set of the first two, so I have 4 sets of the first two. Kinda irritating.

    1. Re:Old news. by Phosphor3k · · Score: 2, Interesting

      Guess I should have hit the links first. Didnt realize they link to pdfs. If you go to amds order page, you can get any documentation they offer (so they say) in book form, for free.Here's a link to the x86-64 5 volume order page:

      http://sausmaps.amd.com/AMDeMA/www/cpg_tech_manu al_order_form.jsp

      Personally, I perfer my documentation in book, not electronic form.

  8. Fast? Give me a break by Anonymous Coward · · Score: 0

    Riceboys are the laughing stock of the automotive community.

  9. 80's Has-been Joke by Mignon · · Score: 2
    AMD Releases Hammer documentation

    So what they're saying is, "You can touch this," right?

  10. gcc already supports the amd x86-64 by Per+Abrahamsen · · Score: 5, Informative

    See gcc news.

  11. Good platform by Don+Miguel · · Score: 1
    This will be good platform for next development project. I code lots for GP32 and have many hours on assembler coding for other architectures. PDFs are good, but need more detail for assembly coders.

  12. Sheer sexism by The_Guv'na · · Score: 2
    Gentlemen...start your compilers! (or start writing them!)"

    What, so no females use/develop linux? Maybe it seems like that...

    Ali

    1. Re:Sheer sexism by oliverthered · · Score: 3, Interesting

      Ok seeing as you failed your English (like me)...

      him/man is the indefinite neuter
      her/she is the definite neuter.

      Gentlemen is correctish just like
      Fire man, post man, She's your man, There are twelve men in the all woman team. take you men...

      America and her army,
      She sailed today (referring to a ship).
      She's a beauty....

      --
      thank God the internet isn't a human right.
    2. Re:Sheer sexism by Anonymous Coward · · Score: 0

      Sorry to be rude, but you are an idiot. Go take a grammar class.

  13. Another tip on -march/-mcpu by devphil · · Score: 2


    Current development sources recognize athlon* as a cpu type. So instead of i686-pc-linux-gnu, I tell build gcc for athlon_mp-pc-linux-gnu, and by default it uses the -march and -mcpu options that turn on the Athlon MP extensions like SSE and whatever.

    Use "gcc -v" to see what triplet you're using.

    This is /not/ in 3.2. I'm not even certain if it's in 3.3.

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
  14. SMP threading and process management by oliverthered · · Score: 2

    Did you spot any improvements to threading and SMP? More fine grained cache management, read-write states. easier state switching between processes/threads. etc.... Why do you think Intel is hyperthreading there core? so that next time round they can realy put two processers in there and sort out the threading men from the boys.

    My 2x2.5Ghz beats your 1x5Ghz

    --
    thank God the internet isn't a human right.