Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Storm C Asm 68k
« on: March 21, 2012, 03:55:03 PM »
Quote from: Byakhee;684629
Is possible to add sources in 68k assembly and call from c that assemblies as functions?
Yes.

You can use 'as' to compile assembly code, however the syntax isn't very comfortable with that. You can use whatever tools you like to build the assembly code, however, for example vasm.

In the C function prototype you need to use special syntax to denote the registers. See http://gcc.gnu.org/onlinedocs/gcc/Local-Reg-Vars.html

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

Quote
What of this things is possible, and how.
Read the gcc documentation about inline assembly:
http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Storm C Asm 68k
« Reply #1 on: March 22, 2012, 12:32:46 PM »
Quote from: Byakhee;684762
Thanks for your rapid answer, but my answer is about using Asm from StormC and you talk about using GNU.
StormC ditched their rather sh*tty custom compiler for V4 and switched to GNU toolchain. StormC 4 == GNU + IDE.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Storm C Asm 68k
« Reply #2 on: March 23, 2012, 04:26:08 PM »
Quote from: Byakhee;684911
Yes, I'm ussing stormc v3, the version that I have.
Well okay fine. In the original post you however state:
Quote
I'm developing with Storm C++ v4

Regardless, I'm glad it got sorted out.