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
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
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
 

beeflobill

Member level 3
Joined
Jun 6, 2012
Messages
62
Helped
8
Reputation
18
Reaction score
7
Trophy points
1,288
Activity points
1,872
What development environment are you using and/or what is your processor target?
 

charu2539211

Junior Member level 3
Joined
Jul 22, 2013
Messages
31
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
200
U can use MPlab... but i am not sure whether it will support c++. there is an option called disassemble listing on that.
 

milind.a.kulkarni

Advanced Member level 3
Joined
Oct 6, 2011
Messages
923
Helped
214
Reputation
428
Reaction score
208
Trophy points
1,333
Location
Bangalore
Activity points
7,438
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
 

Vengateswaran

Member level 5
Joined
Sep 13, 2013
Messages
85
Helped
14
Reputation
30
Reaction score
13
Trophy points
8
Location
Coimbatore, India
Activity points
427
I depends on type of controller you are using... plz specify that.. try proteus software for asm generation.
 

mehakfatima

Newbie level 6
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,366
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....
 

kam1787

Advanced Member level 3
Joined
Jul 5, 2010
Messages
928
Helped
167
Reputation
340
Reaction score
168
Trophy points
1,323
Location
English
Activity points
5,825
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.
 

Venkadesh_M

Advanced Member level 4
Joined
Jun 26, 2013
Messages
1,375
Helped
258
Reputation
516
Reaction score
254
Trophy points
83
Location
Coimbatore, India
Activity points
6,738
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.......
 

mehakfatima

Newbie level 6
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,366
i have this program in c++ but i need to write in assembly language...

- - - Updated - - -

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

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,199
Helped
4,955
Reputation
9,932
Reaction score
4,779
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
129,088
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.
 

mehakfatima

Newbie level 6
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,366
i just need this program in assembly language.... if u or anybody can write this program on any assembler software so plz help me....
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,199
Helped
4,955
Reputation
9,932
Reaction score
4,779
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
129,088
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.
 

mehakfatima

Newbie level 6
Joined
Sep 23, 2012
Messages
12
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,366
i just need a software program which can run on tasm or emu8086.
no need of iterfacing. just need software program...
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,199
Helped
4,955
Reputation
9,932
Reaction score
4,779
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
129,088
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

Top