Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] how to convert c++ code into assembly language.... plz help urgent

Status
Not open for further replies.

mehakfatima

Newbie level 6
Newbie level 6
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,366
i have a program in c++ and i want to convert it into asssembly language.... any software or anyway to get .asm file of this c++ program so plz share it .. i need it urgent... plz
 

What development environment are you using and/or what is your processor target?
 

U can use MPlab... but i am not sure whether it will support c++. there is an option called disassemble listing on that.
 

I think you need to specify the chip name which you are intended to use ........I think mplab for 32bit microcontroller only have c++ support..... Refer mplab xc32++ compiler on microchip website

Good luck
 

MY PROJECT REQUIRMENT:

write an assembly language program which gives the value of resistor, RLC circuit voltage,and DC values of transistors..


1 resistors value by giving colors of resistor( user input)....

2 voltage of RLC by usng formula
V=RI+L(di/dt)+1/c(integrate(q dt))....
L R C will be user input...

3 Vbe , Vce , Vcb
r1,r2,re,rc and vcc will be user input....
 

that's a lot to write in assembler. You might want to code routines for input and output.

I think the object of the project is to get you familiar with assembler.................

Did you really write it in C++ ?! Sounds like overkill.
 

What is your interface if it is just keypad and 16*2 LCD you can do in assembly If you use GLCD, touch screen Its going to be a big thing.......
 

i have this program in c++ but i need to write in assembly language...

- - - Updated - - -

nobody here is familar with assembly language..... ??
 

Most of us are familiar with assembly language but what you are asking for would normally be done in a math library and not coded from scratch. It is a lot of work and not something most people will help you with when ready made libraries are available as part of high level language compilers.

A good starting point would be to compile your existing program to machine code then disassemble it. That will give you an assembly listing although without comments and you may have problems working out what some addresses are used for. What target processor are you using and what was used to write the original C++ code?

Brian.
 

i just need this program in assembly language.... if u or anybody can write this program on any assembler software so plz help me....
 

Each type of processor uses different instructions, there is no universal "assembly language". You at least need to tell us what target processor you intend to use or there is no way we can consider the set of instructions it must use.

Brian.
 

i just need a software program which can run on tasm or emu8086.
no need of iterfacing. just need software program...
 

Then simply run the compiler used by your C++ program and ask it to produce an ASM file as output. As we keep trying to explain - ALL compilers produce code to run on a microprocessor and all microprocessors use instructions which can be represented in assembly language. Your compiler almost certainly has an ASM output option but if it hasn't, it will have some debugging capability which allows you to reverse the instructions from binary numbers back to the equivalent assembly instructions. So you already have the best tool to use, no other program is needed.

Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top