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


Groups > comp.lang.python > #3413

Re: An unusual question...

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <wisecracker@tesco.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'buffer.': 0.09; 'it;': 0.09; 'pointer.': 0.09; 'received:81.103': 0.09; 'received:81.103.221': 0.09; 'received:81.103.221.35': 0.09; 'received:ispmail.ntl.com': 0.09; 'received:ntl.com': 0.09; 'binary': 0.14; 'executable.': 0.16; 'he,': 0.16; 'memcpy': 0.16; 'mmap': 0.16; 'pointer,': 0.16; 'code': 0.22; 'memory': 0.24; 'function': 0.27; 'thanks': 0.29; 'comment': 0.30; 'to:addr :python-list': 0.32; "i've": 0.33; 'page': 0.33; '(for': 0.33; 'some': 0.37; 'steven': 0.38; 'to:addr:python.org': 0.39; 'said': 0.39; 'i.e.': 0.40; 'cast': 0.60; 'from:no real name:2**0': 0.60; 'address': 0.61; 'reply': 0.61; 'url:net': 0.62; 'piece': 0.63; 'url:search': 0.64; 'air': 0.71; 'heart': 0.71; 'reply,': 0.73; 'now...': 0.84; 'you...': 0.95
Date Sun, 17 Apr 2011 17:37:50 +0100
From <wisecracker@tesco.net>
To Python <python-list@python.org>
Subject Re: An unusual question...
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Priority 3 (Normal)
Sensitivity Normal
X-Originating-IP from 217.39.32.97 by mail.tesco.net; Sun, 17 Apr 2011 17:37:50 +0100
X-Mailer 4.2.7
X-Cloudmark-Analysis v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=W5MoBzYaD9EA:10 a=VGi4Nqwp24wA:10 a=IkcTkHD0fZMA:10 a=uVhb0EPuAAAA:8 a=nWwrNhkoAAAA:8 a=6bQkU-fnAAAA:8 a=6TQyshb0vMbupOGE8JkA:9 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.466.1303058274.9059.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 82.94.164.166
X-Trace 1303058274 news.xs4all.nl 81484 [::ffff:82.94.164.166]:49519
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3413

Show key headers only | View raw


Hi Sturla...

> You'll need to mmap or valloc a page-alligned memory
> buffer (for which the size must be a multiple of the system
> page size), and call mprotect to make it executable.
> Copy your binary code into this buffer. Then you will
> need to do some magic with ctypes, Cython or C to call
> it; i.e. cast or memcpy the address of the excutable buffer
> into a function pointer, and dereference/call the function
> pointer.

Many thanks for the sensible reply, Miki has already given me a starter...

> If that sounds gibberish, see Steven's comment about heart transplants.

He he, I've already said my piece to Steven and will remain silent after this reply
to you...

Cheers...

Off air now...

--
73...

Bazza, G0LCU...

Team AMIGA...

http://homepages.tesco.net/wisecracker/

http://main.aminet.net/search?readme=wisecracker

http://mikeos.berlios.de/

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Re: An unusual question... <wisecracker@tesco.net> - 2011-04-17 17:37 +0100
  Re: An unusual question... rusi <rustompmody@gmail.com> - 2011-04-17 10:30 -0700
    Re: An unusual question... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-17 18:15 +0000

csiph-web