Bugzilla – Bug 315468
[PATCH] Make OP_MEMCPY and OP_MEMSET take a base
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by bmaurer@users.sf.net 2004-07-13 11:45:37 MST ---- Before, we would emit constructs like: 3c: 8b 45 08 mov eax,DWORD PTR [ebp+8] 3f: 8d 4d ec lea ecx,[ebp-20] 42: 8b 11 mov edx,DWORD PTR [ecx] 44: 89 10 mov DWORD PTR [eax],edx 46: 8b 51 04 mov edx,DWORD PTR [ecx+4] 49: 89 50 04 mov DWORD PTR [eax+4],edx 4c: 8b 51 08 mov edx,DWORD PTR [ecx+8] 4f: 89 50 08 mov DWORD PTR [eax+8],edx 52: 8b 49 0c mov ecx,DWORD PTR [ecx+12] 55: 89 48 0c mov DWORD PTR [eax+12],ecx for a memcpy. Rather than using the lea, patch makes us use [ebp-20] then [ebp-16] and so on. This allows us to avoid using the lea instruction. ---- Additional Comments From bmaurer@users.sf.net 2004-07-13 11:45:54 MST ---- Created an attachment (id=166449) mini-memcpy-base-base.patch ---- Additional Comments From lupus@ximian.com 2004-07-29 10:27:58 MST ---- Plase commit with the proper changelog entry. ---- Additional Comments From bmaurer@users.sf.net 2004-07-29 14:18:39 MST ---- done Imported an attachment (id=166449) Unknown operating system unknown. Setting to default OS "Other".