Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #160237

How to write optimized code for an instruction set not supported by my computer?

From Mario Castelán Castro <marioxcc.MT@yandex.com>
Newsgroups linux.debian.user
Subject How to write optimized code for an instruction set not supported by my computer?
Date 2015-11-05 23:40 +0100
Message-ID <qrBmh-4ms-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello.

What is the usual workflow to write code that takes advantage of an 
instruction set that is not present in my computer (either in assembly 
or using intrinsic functions that represent those instructions in an 
higher level language)?. For example, if I want to write code for 
decoding and encoding Base64 that uses AVX instructions in my machine 
that has no support for any version of AVX (only SSE 4.2 and CLMUL), 
what is the recommended workflow?.

It seems like I *could* develop within a virtual machine emulated with 
Bochs that supports these instructions, but that would give a very big 
overhead, since I would have to emulate a whole system, and Bochs has no 
multithreading support (so that will make it less efficient if I want to 
write multithreaded code). Is there a better option?

Regards and thanks in advance.

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-05 23:40 +0100
  Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-06 00:40 +0100
    Re: How to write optimized code for an instruction set not supported  by my computer? <tomas@tuxteam.de> - 2015-11-06 15:50 +0100
      Re: How to write optimized code for an instruction set not supported  by my computer? Joel Rees <joel.rees@gmail.com> - 2015-11-06 19:40 +0100
  Re: How to write optimized code for an instruction set not supported  by my computer? Darac Marjal <mailinglist@darac.org.uk> - 2015-11-06 15:20 +0100
  Re: How to write optimized code for an instruction set not supported  by my computer? Joel Rees <joel.rees@gmail.com> - 2015-11-06 20:10 +0100
  Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-09 00:00 +0100
    Re: How to write optimized code for an instruction set not supported  by my computer? <tomas@tuxteam.de> - 2015-11-09 10:20 +0100
    Re: How to write optimized code for an instruction set not supported by my computer? Stefan Monnier <monnier@iro.umontreal.ca> - 2015-11-09 15:10 +0100
    Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-14 01:10 +0100
      Re: How to write optimized code for an instruction set not supported  by my computer? Joel Rees <joel.rees@gmail.com> - 2015-11-14 02:40 +0100
        Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-14 16:30 +0100
          Re: How to write optimized code for an instruction set not supported  by my computer? Joel Rees <joel.rees@gmail.com> - 2015-11-15 01:40 +0100
            Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-22 00:00 +0100
    Re: How to write optimized code for an instruction set not supported  by my computer? Joel Rees <joel.rees@gmail.com> - 2015-11-14 02:00 +0100
      Re: How to write optimized code for an instruction set not supported  by my computer? Mario Castelán Castro  <marioxcc.MT@yandex.com> - 2015-11-14 02:20 +0100

csiph-web