Related articles |
---|
Pushes, Pops, NOPS vbjohny@yahoo.com (2003-12-03) |
Re: Pushes, Pops, NOPS Barak.Zalstein@ParthusCeva.com (Barak Zalstein) (2003-12-08) |
Re: Pushes, Pops, NOPS tmk@netvision.net.il (2003-12-08) |
Re: Pushes, Pops, NOPS nick.roberts@acm.org (Nick Roberts) (2003-12-08) |
Re: Pushes, Pops, NOPS kenrose@tfb.com (Ken Rose) (2003-12-08) |
Re: Pushes, Pops, NOPS vbdis@aol.com (2003-12-08) |
Re: Pushes, Pops, NOPS lex@cc.gatech.edu (Lex Spoon) (2003-12-13) |
From: | Lex Spoon <lex@cc.gatech.edu> |
Newsgroups: | comp.compilers |
Date: | 13 Dec 2003 21:01:58 -0500 |
Organization: | Georgia Institute of Technology |
References: | 03-12-032 |
Keywords: | code |
Posted-Date: | 13 Dec 2003 21:01:58 EST |
vbjohny@yahoo.com (Kalyan) writes:
> Also are there any open source assemblers which would convert the
> above assembly program to binary by eliminating unnecessary NOPS? My
> objective is to eliminate unnecessary "NOPS" wherever they are and
> also unnecessary pushes and pops, for eg., we hav push eax and
> immediately following that a pop eax. I want to eliminate such
> instructions. Could anyone please tell me if there are any freeware
> or shareware assembler or compiler tools that would eliminate these
> unnecessary instructions?
Judging from the other responses, it sounds like you want to aim one
step before raw assembly, and use some kind of low-level intermediate
representation. For example, you might want to hook into gcc's
backend. Then the compiler's optimizer can help you out.
-Lex
Return to the
comp.compilers page.
Search the
comp.compilers archives again.