[haiku-bugs] Re: [Haiku] #10800: UEFI: assembly files need to take calling convention into account

  • From: "pdziepak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 30 Apr 2014 12:19:03 -0000

#10800: UEFI: assembly files need to take calling convention into account
---------------------------------+----------------------------
   Reporter:  jessicah           |      Owner:  axeld
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by pdziepak):

 The best solution would be to use inline assembly in C code and let GCC
 take care of calling convention. Moreover, many of such asm functions
 should be inlined wherever possible since they usually contain only few
 instructions. Use of GCC builtins also should be considered as it would
 allow some compile time optimizations, e.g. when changing byte order of
 the value that is known at compile time.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10800#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: