Welcome, Guest. Please login or register.

Author Topic: Storm C Asm 68k  (Read 3141 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ByakheeTopic starter

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
    • Show all replies
Storm C Asm 68k
« on: March 21, 2012, 02:32:41 PM »
Hello,

I'm developing with Storm C++ v4, and I need to add some functions in Asm.

There I have 2 questions:

Is possible to add sources in 68k assembly and call from c that assemblies as functions?

Or

Is possible add inline assembly in .c source and compile it?

What of this things is possible, and how.

Thanks,
 

Offline ByakheeTopic starter

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
    • Show all replies
Re: Storm C Asm 68k
« Reply #1 on: March 22, 2012, 12:22:58 PM »
Thanks for your rapid answer, but my answer is about using Asm from StormC and you talk about using GNU.
 

Offline ByakheeTopic starter

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
    • Show all replies
Re: Storm C Asm 68k
« Reply #2 on: March 23, 2012, 02:07:16 PM »
Quote from: billyfish;684770
LOL, I feel your love of StormC 3! :-)
Version 3 of the compiler is still available in Storm. If you go to the project environment option under the settings menu, you can check which compiler you're currently using; either the gcc-based version or their custom compiler.

cheers

billy


Yes, I'm ussing stormc v3, the version that I have.

But I found the method to include asm.

Adding files whit .s extension, and ussing the next format you can call functions from c.

Code: [Select]

machine 68000

section function_name,code

xdef _function_name


....

code

....


to call from c you need to do the next:

Code: [Select]

void function_name(register __d0 type, register __a0 type, ....)


It worked with compiler of stormc v3.

Thanks for your help.
 

Offline ByakheeTopic starter

  • Newbie
  • *
  • Join Date: Mar 2012
  • Posts: 4
    • Show all replies
Re: Storm C Asm 68k
« Reply #3 on: March 23, 2012, 04:34:03 PM »
Sorry, is my mistake. My version is V3, not V4 as said in my original post.

Sorry...:shocked:

I'm considering to going to V4... thanks.