FORUMS
Remove All Ads from XDA

[how to] compile and port win32 apps to Windows RT ARM

276 posts
Thanks Meter: 102
 
By no2chem, Senior Member on 13th January 2013, 04:51 AM
Post Reply Email Thread
13th June 2013, 12:07 AM |#61  
chinabull's Avatar
Member
Flag ottawa
Thanks Meter: 66
 
More
Not sure it matters but just want to confirm the vs 2012 express also has the arm compiler included. I have built and run one of our win32 app on my vivotab rt. Of course I have to do the trick for vs 2012 settings and pulled libs from my rt tablet. I have 3 versions of vs 2012 express installed: WP, windows8, windows desktop, btw.

Sent from my RM-820_nam_canada_200 using XDA Windows Phone 7 App
 
 
27th June 2013, 07:57 PM |#62  
chinabull's Avatar
Member
Flag ottawa
Thanks Meter: 66
 
More
You have mentioned in the first post:
"Another serious pitfall.. no in-line assembly support in the MS ARM compiler. So you'll have to write in your assembly in a .S file and link to it."

I tried to add a .S file into the project and the visual studio 2012 express doesn't even want to compile it.

Has anybody actually tried a quick assembly file test? Do I have to get the VS2012 Pro edition?

Thanks.

The file I have used:

test.S:

AREA my_test, CODE, READONLY ; name this block of code
EXPORT test

test proc ; start of a procedure
ldr r0,[r15]
mov pc,lr
endp ; end of a procedure

end ; end of the file

---------- Post added at 02:57 PM ---------- Previous post was at 02:19 PM ----------

I have found a way around it.
1. use the armasm.exe included in the VC express to manually compile the .S into .obj
2. include the .obj into the VS express' project
3. rebuild

Still, it'll be really nice to be able to do it automatically in the VS IDE.
If anybody find any way to achieve it, please let me know.
28th June 2013, 04:49 AM |#63  
Senior Member
Thanks Meter: 184
 
Donate to Me
More
Quote:
Originally Posted by chinabull


Still, it'll be really nice to be able to do it automatically in the VS IDE.
If anybody find any way to achieve it, please let me know.

Add the .s file to the project then open its properties...

General->ItemType ... change this to Custom Build Tool.. and hit apply.

You can then specify a command line for which to build the file using armasm.exe

Cheers!
28th June 2013, 02:18 PM |#64  
chinabull's Avatar
Member
Flag ottawa
Thanks Meter: 66
 
More
Worked like a charm. Thanks.


Sent from my RM-820_nam_canada_200 using XDA Windows Phone 7 App
2nd July 2013, 12:58 AM |#65  
Senior Member
Thanks Meter: 184
 
Donate to Me
More
8.1 Preview
All,

FWIW, the 8.1 preview SDK and WDK have full arm support and tools - desktop apps and drivers.

Just mentioning it here for people that might not have already discovered this.

I haven't yet used any of te included libraries yet, but will give them a shot soon

Cheers!
2nd July 2013, 04:10 AM |#66  
Junior Member
Flag Baltimore, MD and New York, NY
Thanks Meter: 0
 
More
Post Dumbin missing
Quote:
Originally Posted by rheza02

i'm running it in my development machine with visual studio 2012 installed, Any idea ?

It sounds like dumpbin is not on your path. Navigate to Programs -> Visual Studio -> Tools, and then set the appropriate environment (it puts the tools on path).

---------- Post added at 11:10 PM ---------- Previous post was at 10:59 PM ----------

[QUOTE=befreshshaveivorysalesoap;37437301]Thanks. Also, one more question. As you may already know a person can build there own arm base device to test code on. I wish to do this for the rt. Is there a list of requirements for building for rt. ( the device could be made with Adriano and arm. How do a attain a development copy of rt or rt embedded?
Try Windows 8 Embedded.

http://www.itpro.co.uk/operating-sys...lume-licensing

Windows Embedded 8 is now available for enterprise customers to buy directly from Microsoft through its volume licensing programme for the first time.

The offering is designed to extend the Windows 8 experience to a wide range of edge devices and make it easier and more secure for them to exchange data with an organisation’s back-end systems.

The software giant claims the operating system can support industry-specific devices, including medical devices, self-service kiosks and digital signage units.

...
10th July 2013, 02:56 AM |#67  
chinabull's Avatar
Member
Flag ottawa
Thanks Meter: 66
 
More
Are you talking about the express version of the VS or professional/ultimate version?
Please clarify.

Thanks.

Quote:
Originally Posted by bfosterjr

All,

FWIW, the 8.1 preview SDK and WDK have full arm support and tools - desktop apps and drivers.

Just mentioning it here for people that might not have already discovered this.

I haven't yet used any of te included libraries yet, but will give them a shot soon

Cheers!

10th July 2013, 08:00 AM |#68  
Retired Recognized Developer
Thanks Meter: 221
 
Donate to Me
More
Quote:
Originally Posted by chinabull

Are you talking about the express version of the VS or professional/ultimate version?
Please clarify.

No need to clarify as it is obvious - express version would not contain them by its design goal, as it is "express".
10th July 2013, 09:25 AM |#69  
Senior Member
Thanks Meter: 184
 
Donate to Me
More
Quote:
Originally Posted by chinabull

Are you talking about the express version of the VS or professional/ultimate version?
Please clarify.

Thanks.

I'm not aware of any "express" version of the _SDK_.
10th July 2013, 02:31 PM |#70  
chinabull's Avatar
Member
Flag ottawa
Thanks Meter: 66
 
More
I don't know if it's because of the windows phone SDK I installed or not, my visual studio 2012 express has Arm tools and I can build windows desktop app for my tf600 windows rt tablet.
That is why I am asking about if 2013 express has arm tools.


Sent from my RM-820_nam_canada_200 using XDA Windows Phone 7 App
13th July 2013, 11:55 PM |#71  
Member
Thanks Meter: 0
 
More
sorry guys, maybe wrong topic for this question,
but, is there are a chance that ported WM5/6 arm app could be run on RT?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes