473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Converting C code to Assembly!

Ali
Hey Folks,
Though it is crystal clear that every compiler produces an
assebmly code watever high language source file you are going to
compile , but what i want to know is that is there any tool or atleast
some command line options for avr-gcc to produce assembly code without
any extra stuff . Well i have C winAVR source file and i want its exact
replica in assembly , without any ctors , do_copy_data etc..

Regards

ali

Feb 3 '06 #1
10 6636
Ali wrote:
Though it is crystal clear that every compiler produces an
assembly code watever high language source file you are going to
compile
No. Some compilers do translate directly from intermediate
representation to binary code.
but what i want to know is that is there any tool or at least
some command line options for avr-gcc to produce assembly code without
any extra stuff . Well i have C winAVR source file and i want its exact
replica in assembly , without any ctors , do_copy_data etc..


You should ask on the WinAVR mailing list.
http://sourceforge.net/mail/?group_id=68108

I imagine you tried the -S flag?
Feb 3 '06 #2
"Ali" <ab********@gmail.com> writes:
Though it is crystal clear that every compiler produces an
assebmly code watever high language source file you are going to
compile ,
Not necessarily. Some compilers might generate machine code directly,
without going through an intermediate assembly language step.
but what i want to know is that is there any tool or atleast
some command line options for avr-gcc to produce assembly code without
any extra stuff . Well i have C winAVR source file and i want its exact
replica in assembly , without any ctors , do_copy_data etc..


I don't know what you mean by "extra stuff", but your question really
doesn't have much to do with the C programming language.

<http://sourceforge.net/projects/winavr/> has links to mailing lists.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 3 '06 #3
Ali
>I imagine you tried the -S flag?
Yeah , i was really missing this! thanks Grumble.
No. Some compilers do translate directly from intermediate representation to binary code. Well thats matter of discussion as Thompson also pointed in his post.
To me any reasonable compiler writter should not skip this step though
he can put this optional.
I don't know what you mean by "extra stuff" It means *not* providing -S option for object dump. Isn't simple to
understand?
but your question really doesn't have much to do with the C programming language.


Come on i got the solution here and you are saying that its not right
place to ask such question;-) Infact this post is related to C.

A little addition to original post:
Infact by high level languages i mean c/c++/delphi etc. rahter markUp
languages.

Feb 3 '06 #4
Ali wrote:
I imagine you tried the -S flag?

Yeah , i was really missing this! thanks Grumble.
No. Some compilers do translate directly from intermediate representation
to binary code.

Well thats matter of discussion as Thompson also pointed in his post.
To me any reasonable compiler writter should not skip this step though
he can put this optional.


Off-topic but - why require a compiler writer to work via an assembly
language if they don't need to?

[Sometimes it's a great [1] way to discover bugs in an assembler [2], mind.]

[1] For values of "great" which are head-bangingly insanely painful.

[2] This happened with one of the Pop11 ports, but I can't recall which
machine.

--
Chris "understanding is a three-edged sword" Dollin
Feb 3 '06 #5
"Ali" <ab********@gmail.com> writes:
[...]
I don't know what you mean by "extra stuff"

It means *not* providing -S option for object dump. Isn't simple to
understand?


I still don't know what you mean, but that's ok.
but your question really doesn't have much to do with the C
programming language.


Come on i got the solution here and you are saying that its not right
place to ask such question;-) Infact this post is related to C.


Correct, this is not the right place to ask such questions. This
newsgroup is for discussion of the C programming language. Your
question was about how to use a particular compiler, not about how to
program in the language. Sometimes people will answer off-topic
questions; that doesn't mean they're topical.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 3 '06 #6
Ali
So what is use in just posting and posting for off-topic.
Please see the subject of OP , you will see the word 'C' and 'Code' in
that.

Bye and over.

Feb 3 '06 #7
Ali wrote:
So what is use in just posting and posting for off-topic.
What?
Please see the subject of OP , you will see the word 'C' and 'Code' in
that.


Yes. Which isn't sufficient for the content to be on-topic.

--
Chris "understanding is a three-edged sword" Dollin
Feb 3 '06 #8
Ali wrote:
So what is use in just posting and posting for off-topic.
Please see the subject of OP , you will see the word 'C' and 'Code' in
that.

Bye and over.


it's comp.lang.c it's neither comp.code.c nor
comp.code.lang.c

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Feb 3 '06 #9
On 3 Feb 2006 01:54:07 -0800, in comp.lang.c , "Ali"
<ab********@gmail.com> wrote:
I imagine you tried the -S flag?Yeah , i was really missing this! thanks Grumble.

No. Some compilers do translate directly from intermediate representation to binary code. To me any reasonable compiler writter should not skip this step
Why, for goodness' sake ? Why shouldn't a compiler convert directly to
binary?
I don't know what you mean by "extra stuff"
It means *not* providing -S option for object dump. Isn't simple to
understand?
If you mean that, then write it, don't write so cryptically that
people don't understand you.

but your question really doesn't have much to do with the C programming language.


Come on i got the solution here and you are saying that its not right
place to ask such question;-)


You could ask an axe murderer for a recipe for cookies, and maybe
you'd get one, but that doesn't mean he's the right person to ask.
Infact this post is related to C.


No, its not. Its related to how a toolset might behave, which is
nothing to do with the C Language, the topic here.
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Feb 3 '06 #10
On 3 Feb 2006 04:17:14 -0800, in comp.lang.c , "Ali"
<ab********@gmail.com> wrote:
So what is use in just posting and posting for off-topic.
I don't know, why are you doing it.
Please see the subject of OP , you will see the word 'C' and 'Code' in


So what? Its still not topical.
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Feb 3 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Glen Richards | last post by:
Is there a way to do this. I mean there is a company who converts asm to their wsl language and then from that to c is there a way that we can do this?
1
by: Hul Tytus | last post by:
comp.lang.c converting a point known by 4 distances to xyz coordinates? Amongst all the librarys on the internet there is certainly source for a routine that converts a point known by 4...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
5
by: Rick Lemons | last post by:
Excuse my ignorance, but I don't understand the Inherits= parameter that gets stuffed into the @Page directive. I have several old asp sites that I maintain using Visual Interdev 6.0. I want to...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
2
by: Fredrik Rodin | last post by:
All, I'm having problems with my resource manager in ASP.NET 2.0 after conversion from ASP.NET 1.1. Here is a background: In ASP.NET 1.1 All my user controls and aspx pages inherit from...
2
by: SM | last post by:
Hello group, we are converting a VB6 application, written by other people, for .NET Framework. Original application depends on a DLL written in standard C. The application communicates with an...
9
by: Symon | last post by:
I've got a web service project that was built under VS 2003 which has a SoapExtension in the project. The SoapExtension is registered in the <soapExtensionTypes> element of the web.config and has...
1
by: Kevin S Gallagher | last post by:
I found this code (pretty sure it was from a MVP) for converting a string variable to a form object which works fine within a form. Take the code and place it into a code module and it fails on the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.