- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: assembler developer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 07:55 PM
03-22-2004 07:55 PM
I'm a HP-UX system administrator, I know fuzziness about assembler language. For the work, a program developer want me to install assembler software for him. So, anyone can summarize what it's used for and guide me to this free/trial software.
Thanks in advance and highly appreciate
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:02 PM
03-22-2004 08:02 PM
Re: assembler developer
You can check these:
http://www.bloodshed.net/compilers/
http://www.mgtek.com/miniide/download/unix.aspx
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:16 PM
03-22-2004 08:16 PM
Re: assembler developer
Lots of free assemblers here, including the Gnu version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:44 PM
03-22-2004 08:44 PM
Re: assembler developer
All programs that run on a computer end up "machine code". They are conevrted to this either when they are compiled or at run time. An assembler is a program that allows you to write a program almost in machine code. It specifies mnemonics for the various instructions the CPU understands and these are basically what the programmer types in. The upside is it's blindingly quick and it allows fine grained control over all aspects of your machine. The downsides are it is architecture specific, it takes a lot longer write and it is a nightmare to debug someone elses code. Also, there aren't so many programmers these days that can write in assembler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 02:06 PM
03-23-2004 02:06 PM
Re: assembler developer
After that, I follow Stefan's link but it do not point exactly what I need (assembler for HP-UX). So could you please give me the links in more detail.
Thanks to all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 08:10 PM
03-23-2004 08:10 PM
Re: assembler developer
you can use
cc the c compiler frontend.
/usr/ccs/bin/as the assembler.
The difference will be that cc will use the c preprocessor before assembling.
to make an example:
xx.c:
int foo(){return 1;}
main(){printf("%d\n",foo());}
generate the assembly xx.s for xx.c
cc -S xx.c
then you can assemble xx.s with
cc xx.s -c
or
as xx.s
cc xx.o -o xx
or
ld /opt/langtools/lib/crt0.o xx.o -u main -lc -o xx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 01:50 PM
03-24-2004 01:50 PM
Re: assembler developer
Hope see your reply soon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 03:35 PM
03-24-2004 03:35 PM
Re: assembler developer
There are very few times now, even for writing device driver code, where an assembler is needed. You can always use the asm directive within C to generate assembly but I literally have not needed to use assembly in almost 10 years. Of course, an assembler is available with either the HP C compiler of the Gnu C compiler.
There are very few legitimate uses for a disassembler these days unless you are trying to reverse engineer someone's code -- which is almost always not a legitimate use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 05:28 PM
03-24-2004 05:28 PM
Solutionall are debuggers, but do not find the name of
a variable which is used for instance I modified my orinal program:
int titi;
toto()
{return titi++; }
with
gdb xx
gdb> disass toto
0x2828
0x282c
0x2830
0x2834
0x2838
0x283c
0x2840
0x2844
0x2848
0x284c
0x2850
with adb:
echo toto,10?ia| adb xx
or
adb xx
adb>toto,10?ia
toto:
toto: NOP
toto+4: NOP
toto+8: NOP
toto+0xC: ADDIL L%0x0,r27,r1
toto+10: LDW 64(r1),r28
toto+14: LDO 1(r28),r31
toto+18: ADDIL L%0x0,r27,r1
toto+1C: STW r31,64(r1)
toto+20: COPY r28,r28
toto+24: BVE (r2)
toto+28: NOP
main:
main: NOP
main+4: STW r2,-20(r30)
main+8: LDO 64(r30),r30
main+0xC: LDIL L%0x2800,r31
main+10: BE,L 0x28(sr4,r31),sr0,r31
main+14:
titi is at 64(r27)
toto+0xC: ADDIL L%0x0,r27,r1
toto+10: LDW 64(r1),r28
is addil LR'titi-$global$,%r27,%r1
LDW RR'titi-$global$(%r1),%r28
r27 always point to $global$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 06:36 PM
03-24-2004 06:36 PM
Re: assembler developer
As I read the man page, adb/gdb supports only execute(run) files (is it true?), not library files. He need disassembly a library file (???.a file that C using). So do you have another way to do this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 07:07 PM
03-24-2004 07:07 PM
Re: assembler developer
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.3.2/
objdump --reloc --disassemble-all xx.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 03:16 PM
03-28-2004 03:16 PM
Re: assembler developer
" I 's a program written by C , compiled in HP-PA1.0 HP-UX11.0 and it links with some library files in SOM (System Object Module) format. Do you have any way to compile this program in Itanium HP-UX 11.23."
Best regarded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 09:06 AM
03-30-2004 09:06 AM
Re: assembler developer
Do you want to link or compile and link.
Mainly install 11.0 gcc environnement. you will have gas, and gcc.
Else you can try to copy a 11.11 dev environment in a subdir of your 11.23.
then chroot to that subdir before compilation.